Package netscape.security.x509
Class CertificatePolicyInfo
- java.lang.Object
-
- netscape.security.x509.CertificatePolicyInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class CertificatePolicyInfo extends java.lang.Object implements java.io.Serializable
Represent the CertificatePolicyInformation ASN.1 object.- Author:
- Christine Ho
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CertificatePolicyInfo(DerValue val)
Create the CertificatePolicyInfo from the DER encoded value.CertificatePolicyInfo(CertificatePolicyId id)
Create a CertificatePolicyInfo with the passed CertificatePolicyId's.CertificatePolicyInfo(CertificatePolicyId id, PolicyQualifiers qualifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(DerOutputStream out)
Write the CertificatePolicyInfo to the DerOutputStream.CertificatePolicyId
getPolicyIdentifier()
return the policy identifier of the policy infoPolicyQualifiers
getPolicyQualifiers()
java.lang.String
toString()
Returns a printable representation of the CertificatePolicyId.
-
-
-
Constructor Detail
-
CertificatePolicyInfo
public CertificatePolicyInfo(CertificatePolicyId id)
Create a CertificatePolicyInfo with the passed CertificatePolicyId's.- Parameters:
id
- the CertificatePolicyId.
-
CertificatePolicyInfo
public CertificatePolicyInfo(CertificatePolicyId id, PolicyQualifiers qualifiers)
-
CertificatePolicyInfo
public CertificatePolicyInfo(DerValue val) throws java.io.IOException
Create the CertificatePolicyInfo from the DER encoded value.- Parameters:
val
- the DER encoded value of the same.- Throws:
java.io.IOException
-
-
Method Detail
-
getPolicyIdentifier
public CertificatePolicyId getPolicyIdentifier()
return the policy identifier of the policy info
-
getPolicyQualifiers
public PolicyQualifiers getPolicyQualifiers()
-
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 CertificatePolicyInfo to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the object to.- Throws:
java.io.IOException
- on errors.
-
-