Class PolicyConstraint
java.lang.Object
org.mozilla.jss.netscape.security.x509.PolicyConstraint
This class defines the PolicyConstraint ASN.1 object.
- Version:
- 1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate CertificatePolicySetprivate static final byteprivate static final byteprivate static final byte -
Constructor Summary
ConstructorsConstructorDescriptionPolicyConstraint(DerValue val) Create the PolicyConstraint from the DerValue.PolicyConstraint(CertificatePolicySet set, int require, int inhibit) The default constructor for this object -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(DerOutputStream out) Encode the object to the output stream.toString()Return user readable form of the object.
-
Field Details
-
TAG_SET
private static final byte TAG_SET- See Also:
-
TAG_REQUIRE
private static final byte TAG_REQUIRE- See Also:
-
TAG_INHIBIT
private static final byte TAG_INHIBIT- See Also:
-
set
-
require
private int require -
inhibit
private int inhibit
-
-
Constructor Details
-
PolicyConstraint
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
Create the PolicyConstraint from the DerValue.- Parameters:
val- the DerValue of the PolicyConstraint.- Throws:
IOException- on decoding errors.
-
-
Method Details
-
toString
Return user readable form of the object. -
encode
Encode the object to the output stream.- Parameters:
out- the DerOutputStream to encode the object to.- Throws:
IOException
-