org.bouncycastle.asn1.tsp
Class MessageImprint
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.tsp.MessageImprint
- All Implemented Interfaces:
- org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable
- public class MessageImprint
- extends org.bouncycastle.asn1.ASN1Object
Constructor Summary |
MessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm,
byte[] hashedMessage)
|
Method Summary |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getHashAlgorithm()
|
byte[] |
getHashedMessage()
|
static MessageImprint |
getInstance(java.lang.Object o)
Return an instance of MessageImprint, or null, based on o. |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
MessageImprint ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashedMessage OCTET STRING }
|
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MessageImprint
public MessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm,
byte[] hashedMessage)
getInstance
public static MessageImprint getInstance(java.lang.Object o)
- Return an instance of MessageImprint, or null, based on o.
- Parameters:
o
- the object to be converted.
- Returns:
- a MessageImprint object.
getHashAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm()
getHashedMessage
public byte[] getHashedMessage()
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
- MessageImprint ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashedMessage OCTET STRING }