Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.crmf;
 
 
public class CertId
    extends ASN1Object
    private GeneralName issuer;
    private ASN1Integer serialNumber;
    private CertId(ASN1Sequence seq)
    {
         = GeneralName.getInstance(seq.getObjectAt(0));
         = ASN1Integer.getInstance(seq.getObjectAt(1));
    }
    public static CertId getInstance(Object o)
    {
        if (o instanceof CertId)
        {
            return (CertId)o;
        }
        if (o != null)
        {
            return new CertId(ASN1Sequence.getInstance(o));
        }
        return null;
    }
    public static CertId getInstance(ASN1TaggedObject objboolean isExplicit)
    {
        return getInstance(ASN1Sequence.getInstance(objisExplicit));
    }
    public CertId(GeneralName issuerBigInteger serialNumber)
    {
        this(issuernew ASN1Integer(serialNumber));
    }
    public CertId(GeneralName issuerASN1Integer serialNumber)
    {
        this. = issuer;
        this. = serialNumber;
    }
    public GeneralName getIssuer()
    {
        return ;
    }
    public ASN1Integer getSerialNumber()
    {
        return ;
    }

    
 CertId ::= SEQUENCE {
                 issuer           GeneralName,
                 serialNumber     INTEGER }
 

Returns:
a basic ASN.1 object representation.
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector v = new ASN1EncodableVector();
        v.add();
        v.add();
        
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X