Class ObjectDigestInfo
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.util.Encodable
public class ObjectDigestInfo extends ASN1Object
ObjectDigestInfo ASN.1 structure used in v2 attribute certificates.
ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgorithm AlgorithmIdentifier, objectDigest BIT STRING }
-
-
Field Summary
Fields Modifier and Type Field Description public final static intpublicKeypublic final static intpublicKeyCertpublic final static intotherObjectDigestpublic ASN1EnumerateddigestedObjectTypepublic ASN1ObjectIdentifierotherObjectTypeIDpublic AlgorithmIdentifierdigestAlgorithmpublic DERBitStringobjectDigest
-
Constructor Summary
Constructors Constructor Description ObjectDigestInfo(int digestedObjectType, ASN1ObjectIdentifier otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, Array<byte> objectDigest)Constructor from given details.
-
Method Summary
Modifier and Type Method Description ASN1EnumeratedgetDigestedObjectType()ASN1ObjectIdentifiergetOtherObjectTypeID()AlgorithmIdentifiergetDigestAlgorithm()DERBitStringgetObjectDigest()static ObjectDigestInfogetInstance(Object obj)static ObjectDigestInfogetInstance(ASN1TaggedObject obj, boolean explicit)ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream. -
-
Constructor Detail
-
ObjectDigestInfo
ObjectDigestInfo(int digestedObjectType, ASN1ObjectIdentifier otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, Array<byte> objectDigest)
Constructor from given details.- Parameters:
digestedObjectType- The digest object type.otherObjectTypeID- The object type ID forotherObjectDigest.digestAlgorithm- The algorithm identifier for the hash.objectDigest- The hash value.
-
-
Method Detail
-
getDigestedObjectType
ASN1Enumerated getDigestedObjectType()
-
getOtherObjectTypeID
ASN1ObjectIdentifier getOtherObjectTypeID()
-
getDigestAlgorithm
AlgorithmIdentifier getDigestAlgorithm()
-
getObjectDigest
DERBitString getObjectDigest()
-
getInstance
static ObjectDigestInfo getInstance(Object obj)
-
getInstance
static ObjectDigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgorithm AlgorithmIdentifier, objectDigest BIT STRING }
-
-
-
-