QCStatement ::= SEQUENCE { statementId OBJECT IDENTIFIER, statementInfo ANY DEFINED BY statementId OPTIONAL}
Enumeration e = seq.getObjects(); // qcStatementId qcStatementId = DERObjectIdentifier.getInstance(e.nextElement()); // qcstatementInfo if (e.hasMoreElements()) { qcStatementInfo = (ASN1Encodable) e.nextElement(); }
this.qcStatementId = qcStatementId; this.qcStatementInfo = null;
this.qcStatementId = qcStatementId; this.qcStatementInfo = qcStatementInfo;
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");
return qcStatementId;
return qcStatementInfo;
ASN1EncodableVector seq = new ASN1EncodableVector(); seq.add(qcStatementId); if (qcStatementInfo != null) { seq.add(qcStatementInfo); } return new DERSequence(seq);