sun.security.x509
Class CertificatePolicyId

java.lang.Object
  extended by sun.security.x509.CertificatePolicyId

public class CertificatePolicyId
extends Object

Represent the CertificatePolicyId ASN.1 object.


Constructor Summary
CertificatePolicyId(DerValue val)
          Create the object from its Der encoded value.
CertificatePolicyId(ObjectIdentifier id)
          Create a CertificatePolicyId with the ObjectIdentifier.
 
Method Summary
 void encode(DerOutputStream out)
          Write the CertificatePolicyId to the DerOutputStream.
 boolean equals(Object other)
          Compares this CertificatePolicyId with another, for equality.
 ObjectIdentifier getIdentifier()
          Return the value of the CertificatePolicyId as an ObjectIdentifier.
 int hashCode()
          Returns a hash code value for this object.
 String toString()
          Returns a printable representation of the CertificatePolicyId.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CertificatePolicyId

public CertificatePolicyId(ObjectIdentifier id)
Create a CertificatePolicyId with the ObjectIdentifier.

Parameters:
id - the ObjectIdentifier for the policy id.

CertificatePolicyId

public CertificatePolicyId(DerValue val)
                    throws IOException
Create the object from its Der encoded value.

Parameters:
val - the DER encoded value for the same.
Throws:
IOException
Method Detail

getIdentifier

public ObjectIdentifier getIdentifier()
Return the value of the CertificatePolicyId as an ObjectIdentifier.


toString

public String toString()
Returns a printable representation of the CertificatePolicyId.

Overrides:
toString in class Object
Returns:
a string representation of the object.

encode

public void encode(DerOutputStream out)
            throws IOException
Write the CertificatePolicyId to the DerOutputStream.

Parameters:
out - the DerOutputStream to write the object to.
Throws:
IOException - on errors.

equals

public boolean equals(Object other)
Compares this CertificatePolicyId with another, for equality. Uses ObjectIdentifier.equals() as test for equality.

Overrides:
equals in class Object
Parameters:
other - the reference object with which to compare.
Returns:
true iff the ids are identical.
See Also:
Object.hashCode(), Hashtable

hashCode

public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object
Returns:
a hash code value
See Also:
Object.equals(java.lang.Object), Hashtable