| java.lang.Object sun.security.x509.Extension sun.security.x509.BasicConstraintsExtension
BasicConstraintsExtension | public class BasicConstraintsExtension extends Extension implements CertAttrSet(Code) | | 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
}
author: Amit Kapoor author: Hemma Prafullchandra version: 1.13 See Also: CertAttrSet See Also: Extension |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | IS_CA | final public static String | NAME Attribute names. | final public static String | PATH_LEN |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
BasicConstraintsExtension | public BasicConstraintsExtension(boolean ca, int len) throws IOException(Code) | | Default constructor for this object. The extension is marked
critical if the ca flag is true, false otherwise.
Parameters: ca - true, if the subject of the Certificate is a CA. Parameters: len - specifies the depth of the certification path. |
BasicConstraintsExtension | public BasicConstraintsExtension(Boolean critical, boolean ca, int len) throws IOException(Code) | | Constructor for this object with specified criticality.
Parameters: critical - true, if the extension should be marked critical Parameters: ca - true, if the subject of the Certificate is a CA. Parameters: len - specifies the depth of the certification path. |
BasicConstraintsExtension | public BasicConstraintsExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from the passed DER encoded value of the same.
Parameters: extension - the DER encoded value of the extension. exception: IOException - on error. |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extension from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding or validity errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Encode this extension value to the output stream.
Parameters: out - the DerOutputStream to encode the extension to. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Return user readable form of extension.
|
|
|