Class PolicyConstraint


  • public class PolicyConstraint
    extends java.lang.Object
    This class defines the PolicyConstraint ASN.1 object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(DerOutputStream out)
      Encode the object to the output stream.
      java.lang.String toString()
      Return user readable form of the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 java.io.IOException
        Create the PolicyConstraint from the DerValue.
        Parameters:
        val - the DerValue of the PolicyConstraint.
        Throws:
        java.io.IOException - on decoding errors.
    • Method Detail

      • toString

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

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