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

public class PolicyConstraints extends CertificateExtension
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 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