Top Fields Constructors Methods
org.bouncycastle.asn1.tsp

public Class MessageImprint

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv AlgorithmIdentifier
pack-priv byte[]

Constructor Summary

AccessConstructor and Description
private
public
MessageImprint(AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage)

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public byte[]
public static MessageImprint

Returns:

a MessageImprint object.
getInstance
(Object
the object to be converted.
o
)

Return an instance of MessageImprint, or null, based on o.

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

   MessageImprint ::= SEQUENCE  {
      hashAlgorithm                AlgorithmIdentifier,
      hashedMessage                OCTET STRING  }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

hashAlgorithmback to summary
pack-priv AlgorithmIdentifier hashAlgorithm
hashedMessageback to summary
pack-priv byte[] hashedMessage

Constructor Detail

MessageImprintback to summary
private MessageImprint(ASN1Sequence seq)
MessageImprintback to summary
public MessageImprint(AlgorithmIdentifier hashAlgorithm, byte[] hashedMessage)

Method Detail

getHashAlgorithmback to summary
public AlgorithmIdentifier getHashAlgorithm()
getHashedMessageback to summary
public byte[] getHashedMessage()
getInstanceback to summary
public static MessageImprint getInstance(Object o)

Return an instance of MessageImprint, or null, based on o.

Parameters
o:Object

the object to be converted.

Returns:MessageImprint

a MessageImprint object.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

   MessageImprint ::= SEQUENCE  {
      hashAlgorithm                AlgorithmIdentifier,
      hashedMessage                OCTET STRING  }
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.