Class PolicyConstraint

java.lang.Object
org.mozilla.jss.netscape.security.x509.PolicyConstraint

public class PolicyConstraint extends Object
This class defines the PolicyConstraint ASN.1 object.
Version:
1.4
  • Field Details

  • Constructor Details

    • PolicyConstraint

      public PolicyConstraint(CertificatePolicySet set, int require, int inhibit)
      The default constructor for this object
      Parameters:
      set - the CertificatePolicySet (null for optional).
      require - require explicit policy (-1 for optional).
      inhibit - inhibit policy mapping (-1 for optional).
    • PolicyConstraint

      public PolicyConstraint(DerValue val) throws IOException
      Create the PolicyConstraint from the DerValue.
      Parameters:
      val - the DerValue of the PolicyConstraint.
      Throws:
      IOException - on decoding errors.
  • Method Details

    • toString

      public String toString()
      Return user readable form of the object.
      Overrides:
      toString in class Object
    • encode

      public void encode(DerOutputStream out) throws IOException
      Encode the object to the output stream.
      Parameters:
      out - the DerOutputStream to encode the object to.
      Throws:
      IOException