Class BasicConstraintsExtension
java.lang.Object
com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
com.itextpdf.signatures.validation.v1.extensions.BasicConstraintsExtension
Deprecated.
since 8.0.5. To be removed.
Class representing "Basic Constraints" certificate extension.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicConstraintsExtension(boolean ca) Deprecated.Create newBasicConstraintsExtensioninstance using providedbooleanvalue.BasicConstraintsExtension(int pathLength) Deprecated.Create newBasicConstraintsExtensioninstance using providedintpath length. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsInCertificate(X509Certificate certificate) Deprecated.Check if this extension is present in the provided certificate.Methods inherited from class com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
equals, getExtensionOid, getExtensionValue, hashCode
-
Constructor Details
-
BasicConstraintsExtension
public BasicConstraintsExtension(boolean ca) Deprecated.Create newBasicConstraintsExtensioninstance using providedbooleanvalue.- Parameters:
-
ca-booleanvalue, which represents if this certificate is a "Certificate Authority"
-
BasicConstraintsExtension
public BasicConstraintsExtension(int pathLength) Deprecated.Create newBasicConstraintsExtensioninstance using providedintpath length.- Parameters:
-
pathLength-intvalue, which represents acceptable path length for this certificate as a "CA"
-
-
Method Details
-
existsInCertificate
Deprecated.Check if this extension is present in the provided certificate. In case ofBasicConstraintsExtension, check if path length for this extension is less or equal to the path length, specified in the certificate.- Overrides:
-
existsInCertificatein classCertificateExtension - Parameters:
-
certificate-X509Certificatein which this extension shall be present - Returns:
-
trueif this path length is less or equal to a one from the certificate,falseotherwise
-