Top Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class CertificatePolicies

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence

Field Summary

Modifier and TypeField and Description
private final PolicyInformation[]

Constructor Summary

AccessConstructor and Description
public
CertificatePolicies(PolicyInformation
the name to be contained.
name
)

Construct a CertificatePolicies object containing one PolicyInformation.

public
private

Method Summary

Modifier and TypeMethod and Description
public static CertificatePolicies

Returns:

the CertificatePolicies, null if the extension is not present.
fromExtensions
(Extensions
the extensions object to be examined.
extensions
)

Retrieve a CertificatePolicies for a passed in Extensions object, if present.

public static CertificatePolicies
public static CertificatePolicies
getInstance(ASN1TaggedObject obj, boolean explicit)

public PolicyInformation[]
public PolicyInformation
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

policyInformationback to summary
private final PolicyInformation[] policyInformation

Constructor Detail

CertificatePoliciesback to summary
public CertificatePolicies(PolicyInformation name)

Construct a CertificatePolicies object containing one PolicyInformation.

Parameters
name:PolicyInformation

the name to be contained.

CertificatePoliciesback to summary
public CertificatePolicies(PolicyInformation[] policyInformation)
CertificatePoliciesback to summary
private CertificatePolicies(ASN1Sequence seq)

Method Detail

fromExtensionsback to summary
public static CertificatePolicies fromExtensions(Extensions extensions)

Retrieve a CertificatePolicies for a passed in Extensions object, if present.

Parameters
extensions:Extensions

the extensions object to be examined.

Returns:CertificatePolicies

the CertificatePolicies, null if the extension is not present.

getInstanceback to summary
public static CertificatePolicies getInstance(Object obj)
getInstanceback to summary
public static CertificatePolicies getInstance(ASN1TaggedObject obj, boolean explicit)
getPolicyInformationback to summary
public PolicyInformation[] getPolicyInformation()
getPolicyInformationback to summary
public PolicyInformation getPolicyInformation(ASN1ObjectIdentifier policyIdentifier)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

CertificatePolicies ::= SEQUENCE SIZE {1..MAX} OF PolicyInformation
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object