public class CertificatePolicies extends ASN1Object
Constructor and Description |
---|
CertificatePolicies(PolicyInformation name)
Construct a CertificatePolicies object containing one PolicyInformation.
|
CertificatePolicies(PolicyInformation[] policyInformation) |
Modifier and Type | Method and Description |
---|---|
static CertificatePolicies |
fromExtensions(Extensions extensions)
Retrieve a CertificatePolicies for a passed in Extensions object, if present.
|
static CertificatePolicies |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static CertificatePolicies |
getInstance(java.lang.Object obj) |
PolicyInformation[] |
getPolicyInformation() |
PolicyInformation |
getPolicyInformation(ASN1ObjectIdentifier policyIdentifier) |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
java.lang.String |
toString() |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public CertificatePolicies(PolicyInformation name)
name
- the name to be contained.public CertificatePolicies(PolicyInformation[] policyInformation)
public static CertificatePolicies getInstance(java.lang.Object obj)
public static CertificatePolicies getInstance(ASN1TaggedObject obj, boolean explicit)
public static CertificatePolicies fromExtensions(Extensions extensions)
extensions
- the extensions object to be examined.public PolicyInformation[] getPolicyInformation()
public PolicyInformation getPolicyInformation(ASN1ObjectIdentifier policyIdentifier)
public ASN1Primitive toASN1Primitive()
CertificatePolicies ::= SEQUENCE SIZE {1..MAX} OF PolicyInformation
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public java.lang.String toString()
toString
in class java.lang.Object