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

    Constructors
    Constructor
    Description
    MessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    byte[]
     
    Return an instance of MessageImprint, or null, based on o.
    org.bouncycastle.asn1.ASN1Primitive
    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
  • Constructor Details

    • MessageImprint

      public MessageImprint(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage)
  • Method Details

    • getInstance

      public static MessageImprint getInstance(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  }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object