Package org.mozilla.jss.pkix.cmc
Class PopLinkWitnessV2
java.lang.Object
org.mozilla.jss.pkix.cmc.PopLinkWitnessV2
- All Implemented Interfaces:
ASN1Value
CMC PopLinkWitnessV2:
per rfc 5272
PopLinkWitnessV2 ::= SEQUENCE {
keyGenAlgorithm AlgorithmIdentifier,
macAlgorithm AlgorithmIdentifier,
witness OCTET STRING
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template for decoding BER-encoded PopLinkWitnessV2 items. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlgorithmIdentifierprivate AlgorithmIdentifierprivate SEQUENCEprivate static final Tagprivate static final PopLinkWitnessV2.Templateprivate OCTET_STRING -
Constructor Summary
ConstructorsConstructorDescriptionPopLinkWitnessV2(AlgorithmIdentifier keyGenAlgorithm, AlgorithmIdentifier macAlgorithm, OCTET_STRING witness) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static PopLinkWitnessV2.Template
-
Field Details
-
keyGenAlgorithm
-
macAlgorithm
-
witness
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
PopLinkWitnessV2
public PopLinkWitnessV2(AlgorithmIdentifier keyGenAlgorithm, AlgorithmIdentifier macAlgorithm, OCTET_STRING witness)
-
-
Method Details
-
getKeyGenAlgorithm
-
getMacAlgorithm
-
getWitness
-
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-