Top Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class OOBCertHash

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.crmf.CertId, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
private CertId
private AlgorithmIdentifier
private DERBitString

Constructor Summary

AccessConstructor and Description
private
public
OOBCertHash(AlgorithmIdentifier hashAlg, CertId certId, byte[] hashVal)

public

Method Summary

Modifier and TypeMethod and Description
private void
public CertId
public AlgorithmIdentifier
public DERBitString
public static OOBCertHash
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certIdback to summary
private CertId certId
hashAlgback to summary
private AlgorithmIdentifier hashAlg
hashValback to summary
private DERBitString hashVal

Constructor Detail

OOBCertHashback to summary
private OOBCertHash(ASN1Sequence seq)
OOBCertHashback to summary
public OOBCertHash(AlgorithmIdentifier hashAlg, CertId certId, byte[] hashVal)
OOBCertHashback to summary
public OOBCertHash(AlgorithmIdentifier hashAlg, CertId certId, DERBitString hashVal)

Method Detail

addOptionalback to summary
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)
getCertIdback to summary
public CertId getCertId()
getHashAlgback to summary
public AlgorithmIdentifier getHashAlg()
getHashValback to summary
public DERBitString getHashVal()
getInstanceback to summary
public static OOBCertHash getInstance(Object o)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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:ASN1Primitive

a basic ASN.1 object representation.