FileDocCategorySizeDatePackage
IssuerAndSerialNumber.javaAPI DocAndroid 1.5 API1857Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.pkcs

IssuerAndSerialNumber

public class IssuerAndSerialNumber extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
org.bouncycastle.asn1.x509.X509Name
name
org.bouncycastle.asn1.DERInteger
certSerialNumber
Constructors Summary
public IssuerAndSerialNumber(org.bouncycastle.asn1.ASN1Sequence seq)

        this.name = X509Name.getInstance(seq.getObjectAt(0));
        this.certSerialNumber = (DERInteger)seq.getObjectAt(1);
    
public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, BigInteger certSerialNumber)

        this.name = name;
        this.certSerialNumber = new DERInteger(certSerialNumber);
    
public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, org.bouncycastle.asn1.DERInteger certSerialNumber)

        this.name = name;
        this.certSerialNumber = certSerialNumber;
    
Methods Summary
public org.bouncycastle.asn1.DERIntegergetCertificateSerialNumber()

        return certSerialNumber;
    
public static org.bouncycastle.asn1.pkcs.IssuerAndSerialNumbergetInstance(java.lang.Object obj)

        if (obj instanceof IssuerAndSerialNumber)
        {
            return (IssuerAndSerialNumber)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new IssuerAndSerialNumber((ASN1Sequence)obj);
        }

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

        return name;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector    v = new ASN1EncodableVector();

        v.add(name);
        v.add(certSerialNumber);

        return new DERSequence(v);