Package org.mozilla.jss.pkix.cmc
Class IdentityProofV2
java.lang.Object
org.mozilla.jss.pkix.cmc.IdentityProofV2
- All Implemented Interfaces:
ASN1Value
CMC IdentityProofV2:
per rfc 5272
IdentityProofV2 ::= SEQUENCE { hashAlgID AlgorithmIdentifier, macAlgId AlgorithmIdentifier, witness OCTET STRING }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding BER-encoded IdentityProofV2 items. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlgorithmIdentifier
private AlgorithmIdentifier
private SEQUENCE
private static final Tag
private static final IdentityProofV2.Template
private OCTET_STRING
-
Constructor Summary
ConstructorsConstructorDescriptionIdentityProofV2
(AlgorithmIdentifier hashAlgID, AlgorithmIdentifier macAlgId, OCTET_STRING witness) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(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 IdentityProofV2.Template
-
Field Details
-
hashAlgID
-
macAlgId
-
witness
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
IdentityProofV2
public IdentityProofV2(AlgorithmIdentifier hashAlgID, AlgorithmIdentifier macAlgId, OCTET_STRING witness)
-
-
Method Details
-
getHashAlgID
-
getMacAlgId
-
getWitness
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-