Class PolicyConstraint
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.PolicyConstraint
-
public class PolicyConstraint extends java.lang.ObjectThis class defines the PolicyConstraint ASN.1 object.
-
-
Constructor Summary
Constructors Constructor Description PolicyConstraint(DerValue val)Create the PolicyConstraint from the DerValue.PolicyConstraint(CertificatePolicySet set, int require, int inhibit)The default constructor for this object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(DerOutputStream out)Encode the object to the output stream.java.lang.StringtoString()Return user readable form of the object.
-
-
-
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:
toStringin classjava.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
-
-