Class 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 Detail

      • OtherHash

        public OtherHash​(byte[] sha1Hash)
    • Method Detail

      • 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