public final class BasicConstraintsExtension extends X509CertificateExtension
Constructor and Description |
---|
BasicConstraintsExtension(boolean critical,
boolean ca,
int pathLenConstraint)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeTo(ASN1Encoder encoder)
Encode this object.
|
String |
getId()
Get the OID of this extension.
|
encode, getValue, isCritical
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8String
public BasicConstraintsExtension(boolean critical, boolean ca, int pathLenConstraint)
critical
- true
to mark this extension as critical, false
otherwiseca
- true
to assert that the subject is a CA, false
otherwisepathLenConstraint
- if ca
is true and this value is not less than zero, specify the path length constraint (otherwise ignored)public String getId()
X509CertificateExtension
getId
in interface Extension
getId
in class X509CertificateExtension
null
)public void encodeTo(ASN1Encoder encoder)
ASN1Encodable
encoder
- the encoder (must not be null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.