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
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of excluded subtreesGets a list of permitted subtreesvoid
setExcludedSubtrees
(List<GeneralSubtree> excludedSubtrees) Sets a list of excluded subtreesvoid
setPermittedSubtrees
(List<GeneralSubtree> permittedSubtrees) Sets a list of permitted subtreesMethods inherited from class eu.europa.esig.dss.model.x509.extension.CertificateExtension
checkCritical, getDescription, getOctets, getOid, isCritical, setOctets
-
Constructor Details
-
NameConstraints
public NameConstraints()Default constructor
-
-
Method Details
-
getPermittedSubtrees
Gets a list of permitted subtrees- Returns:
- a list of
GeneralSubtree
s
-
setPermittedSubtrees
Sets a list of permitted subtrees- Parameters:
permittedSubtrees
- a list ofGeneralSubtree
s
-
getExcludedSubtrees
Gets a list of excluded subtrees- Returns:
- a list of
GeneralSubtree
s
-
setExcludedSubtrees
Sets a list of excluded subtrees- Parameters:
excludedSubtrees
- a list ofGeneralSubtree
s
-