public class ObjectDigestInfo extends ASN1Object
| Modifier and Type | Field and Description |
|---|---|
static int |
otherObjectDigest
An other object is hashed.
|
static int |
publicKey
The public key is hashed.
|
static int |
publicKeyCert
The public key certificate is hashed.
|
| Constructor and Description |
|---|
ObjectDigestInfo(int digestedObjectType,
ASN1ObjectIdentifier otherObjectTypeID,
AlgorithmIdentifier digestAlgorithm,
byte[] objectDigest)
Constructor from given details.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmIdentifier |
getDigestAlgorithm() |
ASN1Enumerated |
getDigestedObjectType() |
static ObjectDigestInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static ObjectDigestInfo |
getInstance(java.lang.Object obj) |
DERBitString |
getObjectDigest() |
ASN1ObjectIdentifier |
getOtherObjectTypeID() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic static final int publicKey
public static final int publicKeyCert
public static final int otherObjectDigest
public ObjectDigestInfo(int digestedObjectType,
ASN1ObjectIdentifier otherObjectTypeID,
AlgorithmIdentifier digestAlgorithm,
byte[] objectDigest)
If 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.public static ObjectDigestInfo getInstance(java.lang.Object obj)
public static ObjectDigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public ASN1Enumerated getDigestedObjectType()
public ASN1ObjectIdentifier getOtherObjectTypeID()
public AlgorithmIdentifier getDigestAlgorithm()
public DERBitString getObjectDigest()
public ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object