|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Encodable
org.bouncycastle.asn1.isismtt.ocsp.CertHash
public class CertHash
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 | |
|---|---|
private byte[] |
certificateHash
|
private AlgorithmIdentifier |
hashAlgorithm
|
| Fields inherited from class org.bouncycastle.asn1.ASN1Encodable |
|---|
BER, DER |
| Constructor Summary | |
|---|---|
|
CertHash(AlgorithmIdentifier hashAlgorithm,
byte[] certificateHash)
Constructor from a given details. |
private |
CertHash(ASN1Sequence seq)
Constructor from ASN1Sequence. |
| Method Summary | |
|---|---|
byte[] |
getCertificateHash()
|
AlgorithmIdentifier |
getHashAlgorithm()
|
static CertHash |
getInstance(java.lang.Object obj)
|
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream. |
| Methods inherited from class org.bouncycastle.asn1.ASN1Encodable |
|---|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private AlgorithmIdentifier hashAlgorithm
private byte[] certificateHash
| Constructor Detail |
|---|
private CertHash(ASN1Sequence seq)
The sequence is of type CertHash:
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
seq - The ASN.1 sequence.public CertHash(AlgorithmIdentifier hashAlgorithm,
byte[] certificateHash)
hashAlgorithm - The hash algorithm identifier.certificateHash - The hash of the whole DER encoding of the certificate.| Method Detail |
|---|
public static CertHash getInstance(java.lang.Object obj)
public AlgorithmIdentifier getHashAlgorithm()
public byte[] getCertificateHash()
public DERObject toASN1Object()
Returns:
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
toASN1Object in class ASN1Encodable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||