| java.lang.Object sun.security.x509.Extension sun.security.x509.KeyUsageExtension
KeyUsageExtension | public class KeyUsageExtension extends Extension implements CertAttrSet(Code) | | Represent the Key Usage Extension.
This extension, if present, defines the purpose (e.g., encipherment,
signature, certificate signing) of the key contained in the certificate.
The usage restriction might be employed when a multipurpose key is to be
restricted (e.g., when an RSA key should be used only for signing or only
for key encipherment).
author: Amit Kapoor author: Hemma Prafullchandra version: 1.16 See Also: Extension See Also: CertAttrSet |
DATA_ENCIPHERMENT | final public static String DATA_ENCIPHERMENT(Code) | | |
DIGITAL_SIGNATURE | final public static String DIGITAL_SIGNATURE(Code) | | |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
KEY_ENCIPHERMENT | final public static String KEY_ENCIPHERMENT(Code) | | |
NON_REPUDIATION | final public static String NON_REPUDIATION(Code) | | |
KeyUsageExtension | public KeyUsageExtension(byte[] bitString) throws IOException(Code) | | Create a KeyUsageExtension with the passed bit settings. The criticality
is set to true.
Parameters: bitString - the bits to be set for the extension. |
KeyUsageExtension | public KeyUsageExtension(boolean[] bitString) throws IOException(Code) | | Create a KeyUsageExtension with the passed bit settings. The criticality
is set to true.
Parameters: bitString - the bits to be set for the extension. |
KeyUsageExtension | public KeyUsageExtension(BitArray bitString) throws IOException(Code) | | Create a KeyUsageExtension with the passed bit settings. The criticality
is set to true.
Parameters: bitString - the bits to be set for the extension. |
KeyUsageExtension | public KeyUsageExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from the passed DER encoded value of the same.
The DER encoded value may be wrapped in an OCTET STRING.
Parameters: critical - true if the extension is to be treated as critical. Parameters: value - Array of DER encoded bytes of the actual value (possiblywrapped in an OCTET STRING). exception: IOException - on error. |
KeyUsageExtension | public KeyUsageExtension()(Code) | | Create a default key usage.
|
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) | | Write the extension to the DerOutputStream.
Parameters: out - the DerOutputStream to write the extension to. exception: IOException - on encoding errors. |
getBits | public boolean[] getBits()(Code) | | |
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) | | Returns a printable representation of the KeyUsage.
|
|
|