Example usage for org.bouncycastle.asn1.x509 GeneralName getInstance

List of usage examples for org.bouncycastle.asn1.x509 GeneralName getInstance

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x509 GeneralName getInstance.

Prototype

public static GeneralName getInstance(ASN1TaggedObject tagObj, boolean explicit) 

Source Link

Usage

From source file:com.novosec.pkix.asn1.crmf.CertId.java

License:Open Source License

public CertId(ASN1Sequence seq) {
    this.issuer = GeneralName.getInstance((ASN1TaggedObject) seq.getObjectAt(0), true); //QQQ??? implicit because inside of a seq
    this.serialNumber = (DERInteger) seq.getObjectAt(1);
}

From source file:com.novosec.pkix.asn1.crmf.SinglePubInfo.java

License:Open Source License

public SinglePubInfo(ASN1Sequence seq) {
    this.pubMethod = DERInteger.getInstance(seq.getObjectAt(0));

    if (seq.size() > 1) {
        this.pubLocation = GeneralName.getInstance((ASN1TaggedObject) seq.getObjectAt(1), true); //QQQ ??? choice is always explicit --> true
    }// w ww.  ja va  2s. co m
}