Package org.wildfly.security.x500.cert
Class BasicConstraintsExtension
java.lang.Object
org.wildfly.security.x500.cert.X509CertificateExtension
org.wildfly.security.x500.cert.BasicConstraintsExtension
- All Implemented Interfaces:
Extension,ASN1Encodable
The basic constraints extension as defined by RFC 5280 ยง 4.2.1.9.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionBasicConstraintsExtension(boolean critical, boolean ca, int pathLenConstraint) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTo(ASN1Encoder encoder) Encode this object.getId()Get the OID of this extension.Methods inherited from class org.wildfly.security.x500.cert.X509CertificateExtension
encode, getValue, isCritical
-
Constructor Details
-
BasicConstraintsExtension
public BasicConstraintsExtension(boolean critical, boolean ca, int pathLenConstraint) Construct a new instance.- Parameters:
critical-trueto mark this extension as critical,falseotherwiseca-trueto assert that the subject is a CA,falseotherwisepathLenConstraint- ifcais true and this value is not less than zero, specify the path length constraint (otherwise ignored)
-
-
Method Details
-
getId
Description copied from class:X509CertificateExtensionGet the OID of this extension.- Specified by:
getIdin interfaceExtension- Specified by:
getIdin classX509CertificateExtension- Returns:
- the OID of this extension (must not be
null)
-
encodeTo
Description copied from interface:ASN1EncodableEncode this object.- Parameters:
encoder- the encoder (must not benull)
-