Package netscape.security.x509
Class CertificatePolicyId
- java.lang.Object
-
- netscape.security.x509.CertificatePolicyId
-
- All Implemented Interfaces:
java.io.Serializable
public class CertificatePolicyId extends java.lang.Object implements java.io.Serializable
Represent the CertificatePolicyId ASN.1 object.- Version:
- 1.5
- Author:
- Amit Kapoor, Hemma Prafullchandra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CertificatePolicyId(DerValue val)
Create the object from its Der encoded value.CertificatePolicyId(ObjectIdentifier id)
Create a CertificatePolicyId with the ObjectIdentifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(DerOutputStream out)
Write the CertificatePolicyId to the DerOutputStream.ObjectIdentifier
getIdentifier()
Return the value of the CertificatePolicyId as an ObjectIdentifier.java.lang.String
toString()
Returns a printable representation of the CertificatePolicyId.
-
-
-
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 java.io.IOException
Create the object from its Der encoded value.- Parameters:
val
- the DER encoded value for the same.- Throws:
java.io.IOException
-
-
Method Detail
-
getIdentifier
public ObjectIdentifier getIdentifier()
Return the value of the CertificatePolicyId as an ObjectIdentifier.
-
toString
public java.lang.String toString()
Returns a printable representation of the CertificatePolicyId.- Overrides:
toString
in classjava.lang.Object
-
encode
public void encode(DerOutputStream out) throws java.io.IOException
Write the CertificatePolicyId to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the object to.- Throws:
java.io.IOException
- on errors.
-
-