Class 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 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 class java.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.