Class DynamicBasicConstraintsExtension


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

  • Method Details

    • existsInCertificate

      public boolean existsInCertificate (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