Package 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 )
-
-
Constructor Summary
Constructors Constructor Description PolicyQualifierInfo(java.lang.String cps)
Creates a newPolicyQualifierInfo
containing a cPSuri qualifier.PolicyQualifierInfo(ASN1ObjectIdentifier policyQualifierId, ASN1Encodable qualifier)
Creates a newPolicyQualifierInfo
instance.PolicyQualifierInfo(ASN1Sequence as)
Deprecated.use PolicyQualifierInfo.getInstance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyQualifierInfo
getInstance(java.lang.Object obj)
ASN1ObjectIdentifier
getPolicyQualifierId()
ASN1Encodable
getQualifier()
ASN1Primitive
toASN1Primitive()
Returns a DER-encodable representation of this instance.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
PolicyQualifierInfo
public PolicyQualifierInfo(ASN1ObjectIdentifier policyQualifierId, ASN1Encodable qualifier)
Creates a newPolicyQualifierInfo
instance.- Parameters:
policyQualifierId
- aPolicyQualifierId
valuequalifier
- the qualifier, defined by the above field.
-
PolicyQualifierInfo
public PolicyQualifierInfo(java.lang.String cps)
Creates a newPolicyQualifierInfo
containing a cPSuri qualifier.- Parameters:
cps
- the CPS (certification practice statement) uri as aString
.
-
PolicyQualifierInfo
public PolicyQualifierInfo(ASN1Sequence as)
Deprecated.use PolicyQualifierInfo.getInstance()Creates a newPolicyQualifierInfo
instance.- Parameters:
as
-PolicyQualifierInfo
X509 structure encoded as an ASN1Sequence.
-
-
Method Detail
-
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.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a
ASN1Primitive
value
-
-