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

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