java.lang.Object | ||
↳ | sun.security.x509.Extension | |
↳ | sun.security.x509.BasicConstraintsExtension |
This class represents the Basic Constraints Extension.
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 }
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
String | IS_CA | ||||||||||
String | NAME | Attribute names. | |||||||||
String | PATH_LEN |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for this object.
| |||||||||||
Constructor for this object with specified criticality.
| |||||||||||
Create the extension from the passed DER encoded value of the same.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Encode this extension value to the output stream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Return user readable form of extension.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Default constructor for this object. The extension is marked critical if the ca flag is true, false otherwise.
ca | true, if the subject of the Certificate is a CA. |
---|---|
len | specifies the depth of the certification path. |
IOException |
---|
Constructor for this object with specified criticality.
critical | true, if the extension should be marked critical |
---|---|
ca | true, if the subject of the Certificate is a CA. |
len | specifies the depth of the certification path. |
IOException |
---|
Create the extension from the passed DER encoded value of the same.
critical | flag indicating if extension is critical or not |
---|---|
value | an array containing the DER encoded bytes of the extension. |
ClassCastException | if value is not an array of bytes |
---|---|
IOException | on error. |
Encode this extension value to the output stream.
out | the DerOutputStream to encode the extension to. |
---|
IOException |
---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
name | the name of the attribute (e.g. "x509.info.key") |
---|---|
obj | the attribute object. |
IOException |
---|
Return user readable form of extension.