com.rsa.certj.spi.path

Class PolicyInformation

java.lang.Object
  |
  +--com.rsa.certj.spi.path.PolicyInformation

public final class PolicyInformation
extends Object

This class captures a certificate policy from a CertPolicies certificate extension. A collection of PolicyInformation objects is returned by the buildCertPath method in the CertJ class.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.

See Also

CertPolicies

Constructor Summary

PolicyInformation(byte[] id, PolicyQualifiers qualifiers)

Constructs a PolicyInformation object and initializes it with the given values.

 

Method Summary

 boolean

equals(Object object)

Compares this object with the given object to determine whether they contain the same policy qualifiers and the same policy indentifier.

 byte[]

getCertPolicyID()

Gets the identifier of the certificate policy in this PolicyInformation object.

 PolicyQualifiers

getPolicyQualifiers()

Gets the policy qualifiers of the certificate policy in this PolicyInformation object.

 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyInformation

public PolicyInformation(byte[] id,
                         PolicyQualifiers qualifiers)
                  throws CertPathException
Constructs a PolicyInformation object and initializes it with the given values.

Parameters

         id  

A byte array that contains the identifier for this PolicyInformation object.

         qualifiers  

A PolicyQualifiers object that contains an array of the policy qualifiers of the certificate policy.

Throws

CertPathException - If there is an error when cloning the policy qualifiers.
Method Detail

getCertPolicyID

public byte[] getCertPolicyID()
Gets the identifier of the certificate policy in this PolicyInformation object.

Returns

A byte array that contains the certificate policy identifier.

getPolicyQualifiers

public PolicyQualifiers getPolicyQualifiers()
                                     throws CertPathException
Gets the policy qualifiers of the certificate policy in this PolicyInformation object.

Returns

A PolicyQualifiers object that contains an array of the policy qualifiers of the certificate policy.

Throws

CertPathException - If there is an error when cloning the policy qualifiers.

equals

public boolean equals(Object object)
Compares this object with the given object to determine whether they contain the same policy qualifiers and the same policy indentifier.

Overrides

equals in class Object

Parameters

         object  

An Object to be compared against the current PolicyInformation object.

Returns

A boolean with a value of true if the two objects contain the same policy qualifiers and the same policy identifier; returns false otherwise.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000