Class OtherHash

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.esf.OtherHash
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class OtherHash extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
 OtherHash ::= CHOICE {
    sha1Hash  OtherHashValue, -- This contains a SHA-1 hash
   otherHash  OtherHashAlgAndValue
  }
 
  • Constructor Details

    • OtherHash

      public OtherHash(OtherHashAlgAndValue otherHash)
    • OtherHash

      public OtherHash(byte[] sha1Hash)
  • Method Details

    • getInstance

      public static OtherHash getInstance(Object obj)
    • getHashAlgorithm

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm()
    • getHashValue

      public byte[] getHashValue()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object