PolicyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId, qualifier ANY DEFINED BY policyQualifierId }
Creates a new PolicyQualifierInfo instance.parampolicyQualifierId a PolicyQualifierId valueparamqualifier the qualifier, defined by the above field. this.policyQualifierId = policyQualifierId; this.qualifier = qualifier;
PolicyQualifierInfo
PolicyQualifierId
this.policyQualifierId = policyQualifierId; this.qualifier = qualifier;
Creates a new PolicyQualifierInfo containing a cPSuri qualifier.paramcps the CPS (certification practice statement) uri as a String. policyQualifierId = PolicyQualifierId.id_qt_cps; qualifier = new DERIA5String (cps);
String
policyQualifierId = PolicyQualifierId.id_qt_cps; qualifier = new DERIA5String (cps);
Creates a new PolicyQualifierInfo instance.paramas PolicyQualifierInfo X509 structure encoded as an ASN1Sequence. if (as.size() != 2) { throw new IllegalArgumentException("Bad sequence size: " + as.size()); } policyQualifierId = DERObjectIdentifier.getInstance(as.getObjectAt(0)); qualifier = as.getObjectAt(1);
if (as.size() != 2) { throw new IllegalArgumentException("Bad sequence size: " + as.size()); } policyQualifierId = DERObjectIdentifier.getInstance(as.getObjectAt(0)); qualifier = as.getObjectAt(1);
if (as instanceof PolicyQualifierInfo) { return (PolicyQualifierInfo)as; } else if (as instanceof ASN1Sequence) { return new PolicyQualifierInfo((ASN1Sequence)as); } throw new IllegalArgumentException("unknown object in getInstance.");
return policyQualifierId;
return qualifier;
Returns a DER-encodable representation of this instance.returna DERObject value ASN1EncodableVector dev = new ASN1EncodableVector(); dev.add(policyQualifierId); dev.add(qualifier); return new DERSequence(dev);
DERObject
ASN1EncodableVector dev = new ASN1EncodableVector(); dev.add(policyQualifierId); dev.add(qualifier); return new DERSequence(dev);