com.ibm.security12.sun.security.x509
Class CertificatePolicyId

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.CertificatePolicyId

public class CertificatePolicyId
extends Object

Represent the CertificatePolicyId ASN.1 object.

Version:
1.7
Author:
Amit Kapoor, Hemma Prafullchandra

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.
 ObjectIdentifier getIdentifier()
          Return the value of the CertificatePolicyId as an ObjectIdentifier.
 String toString()
          Returns a printable representation of the CertificatePolicyId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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.
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

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.