Package 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
ConstructorsConstructorDescriptionMessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifierbyte[]static MessageImprintReturn an instance of MessageImprint, or null, based on o.org.bouncycastle.asn1.ASN1PrimitiveMessageImprint ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashedMessage OCTET STRING }Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
MessageImprint
public MessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage)
-
-
Method Details
-
getInstance
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 }- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-