The basic constraints extension identifies whether the subject of the certificate is a CA and how deep a certification path may exist through that CA.
The ASN.1 syntax for this extension is:
BasicConstraints ::= SEQUENCE {
cA BOOLEAN DEFAULT FALSE,
pathLenConstraint INTEGER (0..MAX) OPTIONAL
}
Extension
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BasicConstraintsExtension(boolean
true, if the subject of the Certificate is a CA. ca, int specifies the depth of the certification path. len)Default constructor for this object. |
| public | BasicConstraintsExtension(Boolean
true, if the extension should be marked critical critical, boolean true, if the subject of the Certificate is a CA. ca, int specifies the depth of the certification path. len)Constructor for this object with specified criticality. |
| public | BasicConstraintsExtension(Boolean
flag indicating if extension is critical or not critical, Object an array containing the DER encoded bytes of the extension. value)Create the extension from the passed DER encoded value of the same. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to encode the extension to. out)Overrides sun. Implements sun. Encode this extension value to the output stream. |
| private void | |
| public String | |
| public int | |
| public boolean | |
| public String |
| ca | back to summary |
|---|---|
| private boolean ca | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| pathLen | back to summary |
|---|---|
| private int pathLen | |
| BasicConstraintsExtension | back to summary |
|---|---|
| public BasicConstraintsExtension(boolean ca, int len) Default constructor for this object. The extension is marked critical if the ca flag is true, false otherwise.
| |
| BasicConstraintsExtension | back to summary |
|---|---|
| public BasicConstraintsExtension(Boolean critical, boolean ca, int len) Constructor for this object with specified criticality.
| |
| BasicConstraintsExtension | back to summary |
|---|---|
| public BasicConstraintsExtension(Boolean critical, Object value) throws IOException Create the extension from the passed DER encoded value of the same.
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Overrides sun. Implements sun. Encode this extension value to the output stream.
| |
| encodeThis | back to summary |
|---|---|
| private void encodeThis() | |
| getName | back to summary |
|---|---|
| public String getName() Overrides sun. Return the name of this extension.
| |
| getPathLen | back to summary |
|---|---|
| public int getPathLen() | |
| isCa | back to summary |
|---|---|
| public boolean isCa() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Return user readable form of extension. | |