Class PolicyConstraints
java.lang.Object
eu.europa.esig.dss.model.x509.extension.CertificateExtension
eu.europa.esig.dss.model.x509.extension.PolicyConstraints
- All Implemented Interfaces:
OidBasedEnum
,OidDescription
,Serializable
4.2.1.11. Policy Constraints
The policy constraints extension can be used in certificates issued
to CAs. The policy constraints extension constrains path validation
in two ways. It can be used to prohibit policy mapping or require
that each certificate in a path contain an acceptable policy
identifier.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the inhibitPolicyMapping constraint valueint
Gets the requireExplicitPolicy constraint valuevoid
setInhibitPolicyMapping
(int inhibitPolicyMapping) Sets the inhibitPolicyMapping constraint valuevoid
setRequireExplicitPolicy
(int requireExplicitPolicy) Sets the requireExplicitPolicy constraint valueMethods inherited from class eu.europa.esig.dss.model.x509.extension.CertificateExtension
checkCritical, getDescription, getOctets, getOid, isCritical, setOctets
-
Constructor Details
-
PolicyConstraints
public PolicyConstraints()Default constructor
-
-
Method Details
-
getRequireExplicitPolicy
public int getRequireExplicitPolicy()Gets the requireExplicitPolicy constraint value- Returns:
- requireExplicitPolicy int value if present, -1 otherwise
-
setRequireExplicitPolicy
public void setRequireExplicitPolicy(int requireExplicitPolicy) Sets the requireExplicitPolicy constraint value- Parameters:
requireExplicitPolicy
- int value
-
getInhibitPolicyMapping
public int getInhibitPolicyMapping()Gets the inhibitPolicyMapping constraint value- Returns:
- inhibitPolicyMapping int value if present, -1 otherwise
-
setInhibitPolicyMapping
public void setInhibitPolicyMapping(int inhibitPolicyMapping) Sets the inhibitPolicyMapping constraint value- Parameters:
inhibitPolicyMapping
- int value
-