Class CertificatePolicyId
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.CertificatePolicyId
-
- All Implemented Interfaces:
java.io.Serializable
public class CertificatePolicyId extends java.lang.Object implements java.io.SerializableRepresent the CertificatePolicyId ASN.1 object.- 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 voidencode(DerOutputStream out)Write the CertificatePolicyId to the DerOutputStream.ObjectIdentifiergetIdentifier()Return the value of the CertificatePolicyId as an ObjectIdentifier.java.lang.StringtoString()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:
toStringin 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.
-
-