Class MessageImprint

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class MessageImprint
    extends org.bouncycastle.asn1.ASN1Object
    • Constructor Detail

      • MessageImprint

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

      • 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