Bouncy Castle Cryptography Library 1.79

org.bouncycastle.asn1.cmp
Class OOBCertHash

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.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
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
 CertId getCertId()
           
 org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlg()
           
 org.bouncycastle.asn1.ASN1BitString 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.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. }

Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.79