org.gudy.bouncycastle.asn1.x509
Class PolicyQualifierInfo
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.PolicyQualifierInfo
- All Implemented Interfaces:
- DEREncodable
public class PolicyQualifierInfo
- extends ASN1Encodable
Policy qualifiers, used in the X509V3 CertificatePolicies
extension.
PolicyQualifierInfo ::= SEQUENCE {
policyQualifierId PolicyQualifierId,
qualifier ANY DEFINED BY policyQualifierId }
PolicyQualifierInfo
public PolicyQualifierInfo(DERObjectIdentifier policyQualifierId,
DEREncodable qualifier)
- Creates a new
PolicyQualifierInfo
instance.
- Parameters:
policyQualifierId
- a PolicyQualifierId
valuequalifier
- the qualifier, defined by the above field.
PolicyQualifierInfo
public PolicyQualifierInfo(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)
- Creates a new
PolicyQualifierInfo
instance.
- Parameters:
as
- PolicyQualifierInfo
X509 structure
encoded as an ASN1Sequence.
getInstance
public static PolicyQualifierInfo getInstance(Object as)
getPolicyQualifierId
public DERObjectIdentifier getPolicyQualifierId()
getQualifier
public DEREncodable getQualifier()
toASN1Object
public DERObject toASN1Object()
- Returns a DER-encodable representation of this instance.
- Specified by:
toASN1Object
in class ASN1Encodable
- Returns:
- a
DERObject
value