Top Description Fields Constructors Methods
org.bouncycastle.asn1.esf

public Class OtherHash

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .DEROctetString, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier

OtherHash ::= CHOICE {
   sha1Hash  OtherHashValue, -- This contains a SHA-1 hash
  otherHash  OtherHashAlgAndValue
 }

Field Summary

Modifier and TypeField and Description
private OtherHashAlgAndValue
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
private
public
public
OtherHash(byte[] sha1Hash)

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public byte[]
public static OtherHash
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

otherHashback to summary
private OtherHashAlgAndValue otherHash
sha1Hashback to summary
private ASN1OctetString sha1Hash

Constructor Detail

OtherHashback to summary
private OtherHash(ASN1OctetString sha1Hash)
OtherHashback to summary
public OtherHash(OtherHashAlgAndValue otherHash)
OtherHashback to summary
public OtherHash(byte[] sha1Hash)

Method Detail

getHashAlgorithmback to summary
public AlgorithmIdentifier getHashAlgorithm()
getHashValueback to summary
public byte[] getHashValue()
getInstanceback to summary
public static OtherHash getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.