Class MessageImprintBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.tsp.MessageImprintBC
All Implemented Interfaces:
IASN1Encodable, IMessageImprint

public class MessageImprintBC extends ASN1EncodableBC implements IMessageImprint
Wrapper class for MessageImprint.
  • Constructor Details

    • MessageImprintBC

      public MessageImprintBC (org.bouncycastle.asn1.tsp.MessageImprint messageImprint)
      Creates new wrapper instance for MessageImprint.
      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 actual getHashedMessage method for the wrapped MessageImprint object.
      Specified by:
      getHashedMessage in interface IMessageImprint
      Returns:
      hashed message byte array.
    • getHashAlgorithm

      public IAlgorithmIdentifier getHashAlgorithm()
      Calls actual getHashAlgorithm method for the wrapped MessageImprint object.
      Specified by:
      getHashAlgorithm in interface IMessageImprint
      Returns:
      algorithm identifier wrapper.