Package org.mozilla.jss.pkix.cms
Class DigestInfo
java.lang.Object
org.mozilla.jss.pkix.cms.DigestInfo
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A class for decoding the BER encoding of a DigestInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OCTET_STRING
private AlgorithmIdentifier
private SEQUENCE
private static final Tag
private static final DigestInfo.Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
byteArraysAreSame
(byte[] left, byte[] right) Compares two non-null byte arrays.void
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.boolean
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static DigestInfo.Template
int
hashCode()
-
Field Details
-
digestAlgorithm
-
digest
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
DigestInfo
-
-
Method Details
-
getDigestAlgorithm
-
getDigest
-
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. -
equals
-
hashCode
public int hashCode() -
byteArraysAreSame
private static boolean byteArraysAreSame(byte[] left, byte[] right) Compares two non-null byte arrays. Returns true if they are identical, false otherwise. -
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
-