Class MessageImprintBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.tsp.MessageImprintBC
- All Implemented Interfaces:
IASN1Encodable, IMessageImprint
Wrapper class for
MessageImprint.-
Constructor Summary
ConstructorsConstructorDescriptionMessageImprintBC(org.bouncycastle.asn1.tsp.MessageImprint messageImprint) Creates new wrapper instance forMessageImprint. -
Method Summary
Modifier and TypeMethodDescriptionCalls actualgetHashAlgorithmmethod for the wrapped MessageImprint object.byte[]Calls actualgetHashedMessagemethod for the wrapped MessageImprint object.org.bouncycastle.asn1.tsp.MessageImprintGets actual org.bouncycastle object being wrapped.Methods inherited from class ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toStringMethods inherited from interface IASN1Encodable
isNull, toASN1Primitive
-
Constructor Details
-
MessageImprintBC
public MessageImprintBC(org.bouncycastle.asn1.tsp.MessageImprint messageImprint) Creates new wrapper instance forMessageImprint.- Parameters:
messageImprint-MessageImprintto be wrapped
-
-
Method Details
-
getMessageImprint
public org.bouncycastle.asn1.tsp.MessageImprint getMessageImprint()Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
MessageImprint.
-
getHashedMessage
public byte[] getHashedMessage()Calls actualgetHashedMessagemethod for the wrapped MessageImprint object.- Specified by:
getHashedMessagein interfaceIMessageImprint- Returns:
- hashed message byte array.
-
getHashAlgorithm
Calls actualgetHashAlgorithmmethod for the wrapped MessageImprint object.- Specified by:
getHashAlgorithmin interfaceIMessageImprint- Returns:
- algorithm identifier wrapper.
-