All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.extensions.CertificatePolicies

java.lang.Object
   |
   +----iaik.x509.V3Extension
           |
           +----iaik.x509.extensions.CertificatePolicies

public class CertificatePolicies
extends V3Extension
This class implements the CertificatePolicies Extension.
 certificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation
 

PolicyInformation ::= SEQUENCE { policyIdentifier CertPolicyId, policyQualifiers SEQUENCE SIZE (1..MAX) OF PolicyQualifierInfo OPTIONAL }

CertPolicyId ::= OBJECT IDENTIFIER

PolicyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId, qualifier ANY DEFINED BY policyQualifierId }

The certificate policies extension contains a sequence of policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. These policy information terms indicate the policy under which the certificate has been issued and the purposes for which the certificate may be used. This profile strongly recommends that a simple OID be present in this field. Optional qualifiers which may be present are expected to provide information about obtaining CA rules, not change the definition of the policy. More information can be found in draft-ietf-pkix-ipki-part1-05.txt section 4.2.1.5 Certificate Policies.


Constructor Index

 o CertificatePolicies()
Default Constructor.
 o CertificatePolicies(PolicyInformation[])
Creates a new CertificatePolicies extension.

Method Index

 o getObjectID()
Returns the object id of this extension.
 o hashCode()
Returns a hashcode for this identity.
 o init(ASN1Object)
Inits the implementation with an ASN1object.
 o toASN1Object()
Creates an ASN1Object, which is the value of the SEQUENCE Extension
 o toString()

Constructors

 o CertificatePolicies
 public CertificatePolicies()
Default Constructor.

 o CertificatePolicies
 public CertificatePolicies(PolicyInformation certificatePolicies[])
Creates a new CertificatePolicies extension.

Parameters:
certificatePolicies - one or more certificate policies

Methods

 o getObjectID
 public ObjectID getObjectID()
Returns the object id of this extension.

Returns:
the object id
Overrides:
getObjectID in class V3Extension
 o init
 public void init(ASN1Object obj) throws ExtensionException
Inits the implementation with an ASN1object.

Parameters:
obj - the extension as ASN1Object
Throws: ExtensionException
if the extension could not be parsed
Overrides:
init in class V3Extension
 o toASN1Object
 public ASN1Object toASN1Object()
Creates an ASN1Object, which is the value of the SEQUENCE Extension

Overrides:
toASN1Object in class V3Extension
 o hashCode
 public int hashCode()
Returns a hashcode for this identity.

Returns:
a hash code for this identity
Overrides:
hashCode in class V3Extension
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index