Class NameConstraints

java.lang.Object
eu.europa.esig.dss.model.x509.extension.CertificateExtension
eu.europa.esig.dss.model.x509.extension.NameConstraints
All Implemented Interfaces:
OidBasedEnum, OidDescription, Serializable

public class NameConstraints extends CertificateExtension
4.2.1.10. Name Constraints The name constraints extension, which MUST be used only in a CA certificate, indicates a name space within which all subject names in subsequent certificates in a certification path MUST be located. Restrictions apply to the subject distinguished name and apply to subject alternative names. Restrictions apply only when the specified name form is present. If no name of the type is in the certificate, the certificate is acceptable.
See Also:
  • Constructor Details

    • NameConstraints

      public NameConstraints()
      Default constructor
  • Method Details

    • getPermittedSubtrees

      public List<GeneralSubtree> getPermittedSubtrees()
      Gets a list of permitted subtrees
      Returns:
      a list of GeneralSubtrees
    • setPermittedSubtrees

      public void setPermittedSubtrees(List<GeneralSubtree> permittedSubtrees)
      Sets a list of permitted subtrees
      Parameters:
      permittedSubtrees - a list of GeneralSubtrees
    • getExcludedSubtrees

      public List<GeneralSubtree> getExcludedSubtrees()
      Gets a list of excluded subtrees
      Returns:
      a list of GeneralSubtrees
    • setExcludedSubtrees

      public void setExcludedSubtrees(List<GeneralSubtree> excludedSubtrees)
      Sets a list of excluded subtrees
      Parameters:
      excludedSubtrees - a list of GeneralSubtrees