Top Description Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class OOBCertHash

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

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

Field Summary

Modifier and TypeField and Description
private final CertId
private final AlgorithmIdentifier
private final ASN1BitString

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 ASN1BitString
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certIdback to summary
private final CertId certId
hashAlgback to summary
private final AlgorithmIdentifier hashAlg
hashValback to summary
private final ASN1BitString 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 ASN1BitString 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.