org.bouncycastle.asn1.ess
Class OtherCertID

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.ess.OtherCertID
All Implemented Interfaces:
DEREncodable

public class OtherCertID
extends ASN1Encodable


Field Summary
private  IssuerSerial issuerSerial
           
private  ASN1Encodable otherCertHash
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
OtherCertID(AlgorithmIdentifier algId, byte[] digest)
           
OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)
           
OtherCertID(ASN1Sequence seq)
          constructor
 
Method Summary
 AlgorithmIdentifier getAlgorithmHash()
           
 byte[] getCertHash()
           
static OtherCertID getInstance(java.lang.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, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

otherCertHash

private ASN1Encodable otherCertHash

issuerSerial

private IssuerSerial issuerSerial
Constructor Detail

OtherCertID

public OtherCertID(ASN1Sequence seq)
constructor


OtherCertID

public OtherCertID(AlgorithmIdentifier algId,
                   byte[] digest)

OtherCertID

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

getInstance

public static OtherCertID getInstance(java.lang.Object o)

getAlgorithmHash

public AlgorithmIdentifier getAlgorithmHash()

getCertHash

public byte[] getCertHash()

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 }

 

Specified by:
toASN1Object in class ASN1Encodable