Class CertificatePolicyInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class CertificatePolicyInfo
    extends java.lang.Object
    implements java.io.Serializable
    Represent the CertificatePolicyInformation ASN.1 object.
    See Also:
    Serialized Form
    • Constructor Detail

      • CertificatePolicyInfo

        public CertificatePolicyInfo​(CertificatePolicyId id)
        Create a CertificatePolicyInfo with the passed CertificatePolicyId's.
        Parameters:
        id - the CertificatePolicyId.
      • 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
      • 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 CertificatePolicyInfo to the DerOutputStream.
        Parameters:
        out - the DerOutputStream to write the object to.
        Throws:
        java.io.IOException - on errors.