public class ObjectDigestInfo extends ASN1Encodable
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 }
Modifier and Type | Field and Description |
---|---|
(package private) AlgorithmIdentifier |
digestAlgorithm |
(package private) DEREnumerated |
digestedObjectType |
(package private) DERBitString |
objectDigest |
static int |
otherObjectDigest
An other object is hashed.
|
(package private) DERObjectIdentifier |
otherObjectTypeID |
static int |
publicKey
The public key is hashed.
|
static int |
publicKeyCert
The public key certificate is hashed.
|
BER, DER
Modifier | Constructor and Description |
---|---|
private |
ObjectDigestInfo(ASN1Sequence seq) |
|
ObjectDigestInfo(int digestedObjectType,
java.lang.String otherObjectTypeID,
AlgorithmIdentifier digestAlgorithm,
byte[] objectDigest)
Constructor from given details.
|
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getDigestAlgorithm() |
DEREnumerated |
getDigestedObjectType() |
static ObjectDigestInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static ObjectDigestInfo |
getInstance(java.lang.Object obj) |
DERBitString |
getObjectDigest() |
DERObjectIdentifier |
getOtherObjectTypeID() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public static final int publicKey
public static final int publicKeyCert
public static final int otherObjectDigest
DEREnumerated digestedObjectType
DERObjectIdentifier otherObjectTypeID
AlgorithmIdentifier digestAlgorithm
DERBitString objectDigest
public ObjectDigestInfo(int digestedObjectType, java.lang.String otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)
digestedObjectType
is not publicKeyCert
or
publicKey
otherObjectTypeID
must be given,
otherwise it is ignored.digestedObjectType
- The digest object type.otherObjectTypeID
- The object type ID for
otherObjectDigest
.digestAlgorithm
- The algorithm identifier for the hash.objectDigest
- The hash value.private ObjectDigestInfo(ASN1Sequence seq)
public static ObjectDigestInfo getInstance(java.lang.Object obj)
public static ObjectDigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public DEREnumerated getDigestedObjectType()
public DERObjectIdentifier getOtherObjectTypeID()
public AlgorithmIdentifier getDigestAlgorithm()
public DERBitString getObjectDigest()
public DERObject toASN1Object()
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 }
toASN1Object
in class ASN1Encodable
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.