public class

CertificatePolicyId

extends Object
java.lang.Object
   ↳ sun.security.x509.CertificatePolicyId

Class Overview

Represent the CertificatePolicyId ASN.1 object.

Summary

Public Constructors
CertificatePolicyId(ObjectIdentifier id)
Create a CertificatePolicyId with the ObjectIdentifier.
CertificatePolicyId(DerValue val)
Create the object from its Der encoded value.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CertificatePolicyId (ObjectIdentifier id)

Create a CertificatePolicyId with the ObjectIdentifier.

Parameters
id the ObjectIdentifier for the policy id.

public CertificatePolicyId (DerValue val)

Create the object from its Der encoded value.

Parameters
val the DER encoded value for the same.
Throws
IOException

Public Methods

public void encode (DerOutputStream out)

Write the CertificatePolicyId to the DerOutputStream.

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

public boolean equals (Object other)

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

Parameters
other the reference object with which to compare.
Returns
  • true iff the ids are identical.

public ObjectIdentifier getIdentifier ()

Return the value of the CertificatePolicyId as an ObjectIdentifier.

public int hashCode ()

Returns a hash code value for this object.

Returns
  • a hash code value

public String toString ()

Returns a printable representation of the CertificatePolicyId.

Returns
  • a string representation of the object.