Top Description Fields Constructors Methods
org.bouncycastle.asn1.isismtt.ocsp

public Class CertHash

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Arrays

ISIS-MTT PROFILE: The responder may include this extension in a response to send the hash of the requested certificate to the responder. This hash is cryptographically bound to the certificate and serves as evidence that the certificate is known to the responder (i.e. it has been issued and is present in the directory). Hence, this extension is a means to provide a positive statement of availability as described in T8.[8]. As explained in T13.[1], clients may rely on this information to be able to validate signatures after the expiry of the corresponding certificate. Hence, clients MUST support this extension. If a positive statement of availability is to be delivered, this extension syntax and OID MUST be used.
    CertHash ::= SEQUENCE {
      hashAlgorithm AlgorithmIdentifier,
      certificateHash OCTET STRING
    }

Field Summary

Modifier and TypeField and Description
private byte[]
private AlgorithmIdentifier

Constructor Summary

AccessConstructor and Description
private
CertHash(ASN1Sequence
The ASN.1 sequence.
seq
)

Constructor from ASN1Sequence.

public
CertHash(AlgorithmIdentifier
The hash algorithm identifier.
hashAlgorithm
,
byte[]
The hash of the whole DER encoding of the certificate.
certificateHash
)

Constructor from a given details.

Method Summary

Modifier and TypeMethod and Description
public byte[]
public AlgorithmIdentifier
public static CertHash
public ASN1Primitive

Returns:

a DERObject
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certificateHashback to summary
private byte[] certificateHash
hashAlgorithmback to summary
private AlgorithmIdentifier hashAlgorithm

Constructor Detail

CertHashback to summary
private CertHash(ASN1Sequence seq)

Constructor from ASN1Sequence.

The sequence is of type CertHash:

    CertHash ::= SEQUENCE {
      hashAlgorithm AlgorithmIdentifier,
      certificateHash OCTET STRING
    }

Parameters
seq:ASN1Sequence

The ASN.1 sequence.

CertHashback to summary
public CertHash(AlgorithmIdentifier hashAlgorithm, byte[] certificateHash)

Constructor from a given details.

Parameters
hashAlgorithm:AlgorithmIdentifier

The hash algorithm identifier.

certificateHash:byte[]

The hash of the whole DER encoding of the certificate.

Method Detail

getCertificateHashback to summary
public byte[] getCertificateHash()
getHashAlgorithmback to summary
public AlgorithmIdentifier getHashAlgorithm()
getInstanceback to summary
public static CertHash getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:

    CertHash ::= SEQUENCE {
      hashAlgorithm AlgorithmIdentifier,
      certificateHash OCTET STRING
    }
Returns:ASN1Primitive

a DERObject