Class DynamicBasicConstraintsExtension


  • public class DynamicBasicConstraintsExtension
    extends DynamicCertificateExtension
    Class representing "Basic Constraints" certificate extension, which uses provided amount of certificates in chain during the comparison.
    • Method Detail

      • existsInCertificate

        public boolean existsInCertificate​(java.security.cert.X509Certificate certificate)
        Check if this extension is present in the provided certificate. In case of DynamicBasicConstraintsExtension, check if path length for this extension is less or equal to the path length, specified in the certificate.
        Overrides:
        existsInCertificate in class CertificateExtension
        Parameters:
        certificate - X509Certificate in which this extension shall be present
        Returns:
        true if this path length is less or equal to a one from the certificate, false otherwise
      • getMessage

        public java.lang.String getMessage()
        Description copied from class: CertificateExtension
        Returns a message with extra information about the check.
        Overrides:
        getMessage in class CertificateExtension
        Returns:
        a message with extra information about the check.