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
ConstructorDescriptionMessageImprintBC
(org.bouncycastle.asn1.tsp.MessageImprint messageImprint) Creates new wrapper instance forMessageImprint
. -
Method Summary
Modifier and TypeMethodDescriptionCalls actualgetHashAlgorithm
method for the wrapped MessageImprint object.byte[]
Calls actualgetHashedMessage
method for the wrapped MessageImprint object.org.bouncycastle.asn1.tsp.MessageImprint
Gets actual org.bouncycastle object being wrapped.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Constructor Details
-
MessageImprintBC
public MessageImprintBC(org.bouncycastle.asn1.tsp.MessageImprint messageImprint) Creates new wrapper instance forMessageImprint
.- Parameters:
-
messageImprint
-MessageImprint
to 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 actualgetHashedMessage
method for the wrapped MessageImprint object.- Specified by:
-
getHashedMessage
in interfaceIMessageImprint
- Returns:
- hashed message byte array.
-
getHashAlgorithm
Calls actualgetHashAlgorithm
method for the wrapped MessageImprint object.- Specified by:
-
getHashAlgorithm
in interfaceIMessageImprint
- Returns:
- algorithm identifier wrapper.
-