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

IssuerAndSerialNumber

public class IssuerAndSerialNumber extends org.bouncycastle.asn1.ASN1Encodable

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

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

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

        this.name = name;
        this.serialNumber = serialNumber;
    
Methods Summary
public static org.bouncycastle.asn1.cms.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(
            "Illegal object in IssuerAndSerialNumber: " + obj.getClass().getName());
    
public org.bouncycastle.asn1.x509.X509NamegetName()

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

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

        ASN1EncodableVector    v = new ASN1EncodableVector();

        v.add(name);
        v.add(serialNumber);

        return new DERSequence(v);