public final class BasicConstraints extends ExtensionValue
id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 }
BasicConstraints ::= SEQUENCE {
ca BOOLEAN DEFAULT FALSE,
pathLenConstraint INTEGER (0..MAX) OPTIONAL
}
(as specified in RFC 3280)| Modifier and Type | Field and Description |
|---|---|
static ASN1Type |
ASN1
ASN.1 Encoder/Decoder.
|
encoding| Constructor and Description |
|---|
BasicConstraints(byte[] encoding)
Creates the extension object on the base of its encoded form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpValue(StringBuilder sb,
String prefix) |
boolean |
getCa() |
byte[] |
getEncoded()
Returns the encoded form of the object.
|
int |
getPathLenConstraint() |
dumpValuepublic static final ASN1Type ASN1
public BasicConstraints(byte[] encoding)
throws IOException
IOExceptionpublic boolean getCa()
public int getPathLenConstraint()
public byte[] getEncoded()
getEncoded in class ExtensionValuepublic void dumpValue(StringBuilder sb, String prefix)
dumpValue in class ExtensionValue