Class BasicConstraintsExtension
- java.lang.Object
-
- com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
-
- com.itextpdf.signatures.validation.v1.extensions.BasicConstraintsExtension
-
@Deprecated public class BasicConstraintsExtension extends CertificateExtension
Deprecated.since 8.0.5. To be removed.Class representing "Basic Constraints" certificate extension.
-
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactory
FACTORY
Deprecated.private int
pathLength
Deprecated.
-
Constructor Summary
Constructors Constructor Description BasicConstraintsExtension(boolean ca)
Deprecated.Create newBasicConstraintsExtension
instance using providedboolean
value.BasicConstraintsExtension(int pathLength)
Deprecated.Create newBasicConstraintsExtension
instance using providedint
path length.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
existsInCertificate(java.security.cert.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
-
-
-
-
Field Detail
-
FACTORY
private static final IBouncyCastleFactory FACTORY
Deprecated.
-
pathLength
private final int pathLength
Deprecated.
-
-
Constructor Detail
-
BasicConstraintsExtension
public BasicConstraintsExtension(boolean ca)
Deprecated.Create newBasicConstraintsExtension
instance using providedboolean
value.- Parameters:
ca
-boolean
value, which represents if this certificate is a "Certificate Authority"
-
BasicConstraintsExtension
public BasicConstraintsExtension(int pathLength)
Deprecated.Create newBasicConstraintsExtension
instance using providedint
path length.- Parameters:
pathLength
-int
value, which represents acceptable path length for this certificate as a "CA"
-
-
Method Detail
-
existsInCertificate
public boolean existsInCertificate(java.security.cert.X509Certificate certificate)
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:
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
-
-