Class PolicyQualifierInfo

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

public class PolicyQualifierInfo extends Object implements Serializable
Represent the PolicyQualifierInfo. policyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId qualifier ANY DEFINED BY policyQualifierId }
See Also:
  • Field Details

  • Constructor Details

    • PolicyQualifierInfo

      public PolicyQualifierInfo(ObjectIdentifier id, Qualifier qualifier)
      Create a PolicyQualifierInfo
      Parameters:
      id - the ObjectIdentifier for the policy id.
    • PolicyQualifierInfo

      public PolicyQualifierInfo(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

    • getId

      public ObjectIdentifier getId()
    • getQualifier

      public Qualifier getQualifier()
      Returns object of type CPSuri or UserNotice.
    • 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 PolicyQualifier to the DerOutputStream.
      Parameters:
      out - the DerOutputStream to write the object to.
      Throws:
      IOException - on errors.