FileDocCategorySizeDatePackage
QCStatement.javaAPI DocAndroid 1.5 API2392Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509.qualified

QCStatement

public class QCStatement extends org.bouncycastle.asn1.ASN1Encodable implements ETSIQCObjectIdentifiers, RFC3739QCObjectIdentifiers
The QCStatement object.
QCStatement ::= SEQUENCE {
statementId OBJECT IDENTIFIER,
statementInfo ANY DEFINED BY statementId OPTIONAL}

Fields Summary
org.bouncycastle.asn1.DERObjectIdentifier
qcStatementId
org.bouncycastle.asn1.ASN1Encodable
qcStatementInfo
Constructors Summary
public QCStatement(org.bouncycastle.asn1.ASN1Sequence seq)

        Enumeration e = seq.getObjects();

        // qcStatementId
        qcStatementId = DERObjectIdentifier.getInstance(e.nextElement());
        // qcstatementInfo
        if (e.hasMoreElements())
        {
            qcStatementInfo = (ASN1Encodable) e.nextElement();
        }
    
public QCStatement(org.bouncycastle.asn1.DERObjectIdentifier qcStatementId)

        this.qcStatementId = qcStatementId;
        this.qcStatementInfo = null;
    
public QCStatement(org.bouncycastle.asn1.DERObjectIdentifier qcStatementId, org.bouncycastle.asn1.ASN1Encodable qcStatementInfo)

        this.qcStatementId = qcStatementId;
        this.qcStatementInfo = qcStatementInfo;
    
Methods Summary
public static org.bouncycastle.asn1.x509.qualified.QCStatementgetInstance(java.lang.Object obj)

        if (obj == null || obj instanceof QCStatement)
        {
            return (QCStatement)obj;
        }

        if (obj instanceof ASN1Sequence)
        {
            return new QCStatement(ASN1Sequence.getInstance(obj));            
        }
        
        throw new IllegalArgumentException("unknown object in getInstance");
    
public org.bouncycastle.asn1.DERObjectIdentifiergetStatementId()

        return qcStatementId;
    
public org.bouncycastle.asn1.ASN1EncodablegetStatementInfo()

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

        ASN1EncodableVector seq = new ASN1EncodableVector();
        seq.add(qcStatementId);       
        
        if (qcStatementInfo != null)
        {
            seq.add(qcStatementInfo);
        }

        return new DERSequence(seq);