Class CertificatePolicyId

java.lang.Object
org.mozilla.jss.netscape.security.x509.CertificatePolicyId
All Implemented Interfaces:
Serializable

public class CertificatePolicyId extends Object implements Serializable
Represent the CertificatePolicyId ASN.1 object.
Version:
1.5
See Also:
  • Field Details

  • Constructor Details

    • 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.
      Throws:
      IOException
  • Method Details

    • 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.