org.bouncycastle.asn1.ess

Class OtherCertID

Implemented Interfaces:
DEREncodable

public class OtherCertID
extends ASN1Encodable

Constructor Summary

OtherCertID(ASN1Sequence seq)
constructor
OtherCertID(AlgorithmIdentifier algId, byte[] digest)
OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)

Method Summary

AlgorithmIdentifier
getAlgorithmHash()
byte[]
getCertHash()
static OtherCertID
getInstance(Object o)
IssuerSerial
getIssuerSerial()
DERObject
toASN1Object()
 OtherCertID ::= SEQUENCE {
     otherCertHash    OtherHash,
     issuerSerial     IssuerSerial OPTIONAL }

 OtherHash ::= CHOICE {
     sha1Hash     OCTET STRING,
     otherHash    OtherHashAlgAndValue }

 OtherHashAlgAndValue ::= SEQUENCE {
     hashAlgorithm    AlgorithmIdentifier,
     hashValue        OCTET STRING }

 

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

OtherCertID

public OtherCertID(ASN1Sequence seq)
constructor


OtherCertID

public OtherCertID(AlgorithmIdentifier algId,
                   byte[] digest)


OtherCertID

public OtherCertID(AlgorithmIdentifier algId,
                   byte[] digest,
                   IssuerSerial issuerSerial)

Method Details

getAlgorithmHash

public AlgorithmIdentifier getAlgorithmHash()


getCertHash

public byte[] getCertHash()


getInstance

public static OtherCertID getInstance(Object o)


getIssuerSerial

public IssuerSerial getIssuerSerial()


toASN1Object

public DERObject toASN1Object()
 OtherCertID ::= SEQUENCE {
     otherCertHash    OtherHash,
     issuerSerial     IssuerSerial OPTIONAL }

 OtherHash ::= CHOICE {
     sha1Hash     OCTET STRING,
     otherHash    OtherHashAlgAndValue }

 OtherHashAlgAndValue ::= SEQUENCE {
     hashAlgorithm    AlgorithmIdentifier,
     hashValue        OCTET STRING }

 
Overrides:
toASN1Object in interface ASN1Encodable