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)  
    • 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

      • 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.