public class BasicConstraintsExtension extends CertificateExtension
| Constructor and Description |
|---|
BasicConstraintsExtension(boolean ca)
Create new
BasicConstraintsExtension instance using provided boolean value. |
BasicConstraintsExtension(int pathLength)
Create new
BasicConstraintsExtension instance using provided int path length. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsInCertificate(X509Certificate certificate)
Check if this extension is present in the provided certificate.
|
equals, getExtensionOid, getExtensionValue, hashCodepublic BasicConstraintsExtension(boolean ca)
BasicConstraintsExtension instance using provided boolean value.ca - boolean value, which represents if this certificate is a "Certificate Authority"public BasicConstraintsExtension(int pathLength)
BasicConstraintsExtension instance using provided int path length.pathLength - int value, which represents acceptable path length for this certificate as a "CA"public boolean existsInCertificate(X509Certificate certificate)
BasicConstraintsExtension,
check if path length for this extension is less or equal to the path length, specified in the certificate.existsInCertificate in class CertificateExtensioncertificate - X509Certificate in which this extension shall be presenttrue if this path length is less or equal to a one from the certificate, false otherwiseCopyright © 1998–2024 Apryse Group NV. All rights reserved.