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 int
publicKey
public final static int
publicKeyCert
public final static int
otherObjectDigest
public ASN1Enumerated
digestedObjectType
public ASN1ObjectIdentifier
otherObjectTypeID
public AlgorithmIdentifier
digestAlgorithm
public DERBitString
objectDigest
-
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 ASN1Enumerated
getDigestedObjectType()
ASN1ObjectIdentifier
getOtherObjectTypeID()
AlgorithmIdentifier
getDigestAlgorithm()
DERBitString
getObjectDigest()
static ObjectDigestInfo
getInstance(Object obj)
static ObjectDigestInfo
getInstance(ASN1TaggedObject obj, boolean explicit)
ASN1Primitive
toASN1Primitive()
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 }
-
-
-
-