org.bouncycastle.asn1.x509
Class PolicyQualifierInfo
java.lang.Object
|
+--org.bouncycastle.asn1.ASN1Object
|
+--org.bouncycastle.asn1.x509.PolicyQualifierInfo
- All Implemented Interfaces:
- ASN1Encodable, Encodable
- public class PolicyQualifierInfo
- extends ASN1Object
Policy qualifiers, used in the X509V3 CertificatePolicies
extension.
PolicyQualifierInfo ::= SEQUENCE {
policyQualifierId PolicyQualifierId,
qualifier ANY DEFINED BY policyQualifierId }
PolicyQualifierId ::= OBJECT IDENTIFIER ( id-qt-cps | id-qt-unotice )
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PolicyQualifierInfo
public PolicyQualifierInfo(ASN1ObjectIdentifier policyQualifierId,
ASN1Encodable qualifier)
- Creates a new PolicyQualifierInfo instance.
- Parameters:
policyQualifierId
- a PolicyQualifierId valuequalifier
- the qualifier, defined by the above field.
PolicyQualifierInfo
public PolicyQualifierInfo(java.lang.String cps)
- Creates a new PolicyQualifierInfo containing a
cPSuri qualifier.
- Parameters:
cps
- the CPS (certification practice statement) uri as a
String.
PolicyQualifierInfo
public PolicyQualifierInfo(ASN1Sequence as)
- Deprecated. use PolicyQualifierInfo.getInstance()
- Creates a new PolicyQualifierInfo instance.
- Parameters:
as
- PolicyQualifierInfo X509 structure
encoded as an ASN1Sequence.
getInstance
public static PolicyQualifierInfo getInstance(java.lang.Object obj)
getPolicyQualifierId
public ASN1ObjectIdentifier getPolicyQualifierId()
getQualifier
public ASN1Encodable getQualifier()
toASN1Primitive
public ASN1Primitive toASN1Primitive()
- Returns a DER-encodable representation of this instance.
- Overrides:
toASN1Primitive
in class ASN1Object
- Returns:
- a ASN1Primitive value
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object