FileDocCategorySizeDatePackage
CertID.javaAPI DocAndroid 1.5 API2928Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.ocsp

CertID

public class CertID extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
org.bouncycastle.asn1.x509.AlgorithmIdentifier
hashAlgorithm
org.bouncycastle.asn1.ASN1OctetString
issuerNameHash
org.bouncycastle.asn1.ASN1OctetString
issuerKeyHash
org.bouncycastle.asn1.DERInteger
serialNumber
Constructors Summary
public CertID(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, org.bouncycastle.asn1.ASN1OctetString issuerNameHash, org.bouncycastle.asn1.ASN1OctetString issuerKeyHash, org.bouncycastle.asn1.DERInteger serialNumber)

        this.hashAlgorithm = hashAlgorithm;
        this.issuerNameHash = issuerNameHash;
        this.issuerKeyHash = issuerKeyHash;
        this.serialNumber = serialNumber;
    
public CertID(org.bouncycastle.asn1.ASN1Sequence seq)

        hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0));
        issuerNameHash = (ASN1OctetString)seq.getObjectAt(1);
        issuerKeyHash = (ASN1OctetString)seq.getObjectAt(2);
        serialNumber = (DERInteger)seq.getObjectAt(3);
    
Methods Summary
public org.bouncycastle.asn1.x509.AlgorithmIdentifiergetHashAlgorithm()

        return hashAlgorithm;
    
public static org.bouncycastle.asn1.ocsp.CertIDgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

        return getInstance(ASN1Sequence.getInstance(obj, explicit));
    
public static org.bouncycastle.asn1.ocsp.CertIDgetInstance(java.lang.Object obj)

        if (obj == null || obj instanceof CertID)
        {
            return (CertID)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new CertID((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public org.bouncycastle.asn1.ASN1OctetStringgetIssuerKeyHash()

        return issuerKeyHash;
    
public org.bouncycastle.asn1.ASN1OctetStringgetIssuerNameHash()

        return issuerNameHash;
    
public org.bouncycastle.asn1.DERIntegergetSerialNumber()

        return serialNumber;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.
CertID ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
issuerNameHash OCTET STRING, -- Hash of Issuer's DN
issuerKeyHash OCTET STRING, -- Hash of Issuers public key
serialNumber CertificateSerialNumber }

        ASN1EncodableVector    v = new ASN1EncodableVector();

        v.add(hashAlgorithm);
        v.add(issuerNameHash);
        v.add(issuerKeyHash);
        v.add(serialNumber);

        return new DERSequence(v);