Class BasicConstraints
java.lang.Object
eu.europa.esig.dss.model.x509.extension.CertificateExtension
eu.europa.esig.dss.model.x509.extension.BasicConstraints
- All Implemented Interfaces:
OidBasedEnum
,OidDescription
,Serializable
4.2.1.9. Basic Constraints
The basic constraints extension identifies whether the subject of the
certificate is a CA and the maximum depth of valid certification
paths that include this certificate.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the pathLenConstraint valueboolean
isCa()
Returns whether the certificate is a CA certificatevoid
setCa
(boolean ca) Sets whether the certificate is a CA certificatevoid
setPathLenConstraint
(int pathLenConstraint) Sets the pathLenConstraint valueMethods inherited from class eu.europa.esig.dss.model.x509.extension.CertificateExtension
checkCritical, getDescription, getOctets, getOid, isCritical, setOctets
-
Constructor Details
-
BasicConstraints
public BasicConstraints()Default constructor
-
-
Method Details
-
isCa
public boolean isCa()Returns whether the certificate is a CA certificate- Returns:
- TRUE if the certificate is a CA certificate, FALSE otherwise
-
setCa
public void setCa(boolean ca) Sets whether the certificate is a CA certificate- Parameters:
ca
- TRUE if the certificate is a CA certificate, FALSE otherwise
-
getPathLenConstraint
public int getPathLenConstraint()Returns the pathLenConstraint value- Returns:
- the pathLenConstraint value
-
setPathLenConstraint
public void setPathLenConstraint(int pathLenConstraint) Sets the pathLenConstraint value- Parameters:
pathLenConstraint
- the pathLenConstraint value
-