Package netscape.security.x509
Class PolicyConstraint
- java.lang.Object
-
- netscape.security.x509.PolicyConstraint
-
public class PolicyConstraint extends java.lang.Object
This class defines the PolicyConstraint ASN.1 object.- Version:
- 1.4
- Author:
- Amit Kapoor, Hemma Prafullchandra
-
-
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 void
encode(DerOutputStream out)
Encode the object to the output stream.java.lang.String
toString()
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:
toString
in 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
-
-