Class CertificatePolicyInfo

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

public class CertificatePolicyInfo extends Object implements Serializable
Represent the CertificatePolicyInformation ASN.1 object.
See Also:
  • Field Details

  • Constructor Details

    • 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 IOException
      Create the CertificatePolicyInfo from the DER encoded value.
      Parameters:
      val - the DER encoded value of the same.
      Throws:
      IOException
  • Method Details

    • getPolicyIdentifier

      public CertificatePolicyId getPolicyIdentifier()
      return the policy identifier of the policy info
    • getPolicyQualifiers

      public PolicyQualifiers getPolicyQualifiers()
    • 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 CertificatePolicyInfo to the DerOutputStream.
      Parameters:
      out - the DerOutputStream to write the object to.
      Throws:
      IOException - on errors.