Class OOBCertHash

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

    public class OOBCertHash
    extends org.bouncycastle.asn1.ASN1Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OOBCertHash​(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlg, CertId certId, byte[] hashVal)  
      OOBCertHash​(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlg, CertId certId, org.bouncycastle.asn1.DERBitString hashVal)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CertId getCertId()  
      org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlg()  
      org.bouncycastle.asn1.DERBitString getHashVal()  
      static OOBCertHash getInstance​(java.lang.Object o)  
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      OOBCertHash ::= SEQUENCE { hashAlg [0] AlgorithmIdentifier OPTIONAL, certId [1] CertId OPTIONAL, hashVal BIT STRING -- hashVal is calculated over the DER encoding of the -- self-signed certificate with the identifier certID. }
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OOBCertHash

        public OOBCertHash​(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlg,
                           CertId certId,
                           byte[] hashVal)
      • OOBCertHash

        public OOBCertHash​(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlg,
                           CertId certId,
                           org.bouncycastle.asn1.DERBitString hashVal)
    • Method Detail

      • getInstance

        public static OOBCertHash getInstance​(java.lang.Object o)
      • getHashAlg

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlg()
      • getCertId

        public CertId getCertId()
      • getHashVal

        public org.bouncycastle.asn1.DERBitString getHashVal()
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
         OOBCertHash ::= SEQUENCE {
                              hashAlg     [0] AlgorithmIdentifier     OPTIONAL,
                              certId      [1] CertId                  OPTIONAL,
                              hashVal         BIT STRING
                              -- hashVal is calculated over the DER encoding of the
                              -- self-signed certificate with the identifier certID.
               }
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
        Returns:
        a basic ASN.1 object representation.