Class DynamicBasicConstraintsExtension
java.lang.Object
com.itextpdf.signatures.validation.extensions.CertificateExtension
com.itextpdf.signatures.validation.extensions.DynamicCertificateExtension
com.itextpdf.signatures.validation.extensions.DynamicBasicConstraintsExtension
Class representing "Basic Constraints" certificate extension, which uses provided amount of certificates in chain during the comparison.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsInCertificate
(X509Certificate certificate) Check if this extension is present in the provided certificate.Methods inherited from class com.itextpdf.signatures.validation.extensions.DynamicCertificateExtension
getCertificateChainSize, withCertificateChainSize
Methods inherited from class com.itextpdf.signatures.validation.extensions.CertificateExtension
equals, getExtensionOid, getExtensionValue, hashCode
-
Constructor Details
-
DynamicBasicConstraintsExtension
public DynamicBasicConstraintsExtension()Create new instance ofDynamicBasicConstraintsExtension
.
-
-
Method Details
-
existsInCertificate
Check if this extension is present in the provided certificate. In case ofDynamicBasicConstraintsExtension
, check if path length for this extension is less or equal to the path length, specified in the certificate.- Overrides:
-
existsInCertificate
in classCertificateExtension
- 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
-