Class OOBCertHash

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.OOBCertHash
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class OOBCertHash extends org.bouncycastle.asn1.ASN1Object
 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.
 }
 
  • 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

    Modifier and Type
    Method
    Description
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.ASN1BitString
     
     
    org.bouncycastle.asn1.ASN1Primitive
    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 Details

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

    • getInstance

      public static OOBCertHash getInstance(Object o)
    • getHashAlg

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

      public CertId getCertId()
    • getHashVal

      public org.bouncycastle.asn1.ASN1BitString 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.