|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.cert.X509Extension
oracle.security.crypto.cert.ext.KeyUsageExtension
public class KeyUsageExtension
Represents the certificate Key Usage extension from RFC 2459. This extension SHOULD be critical.
| Field Summary | |
|---|---|
static int |
CRL_SIGNKey usage flag to be used in setUsageFlag(int). |
static int |
DATA_ENCIPHERMENTKey usage flag to be used in setUsageFlag(int). |
static int |
DECIPHER_ONLYKey usage flag to be used in setUsageFlag(int). |
static int |
DIGITAL_SIGNATUREKey usage flag to be used in setUsageFlag(int). |
static int |
ENCIPHER_ONLYKey usage flag to be used in setUsageFlag(int). |
static int |
KEY_AGREEMENTKey usage flag to be used in setUsageFlag(int). |
static int |
KEY_CERT_SIGNKey usage flag to be used in setUsageFlag(int). |
static int |
KEY_ENCIPHERMENTKey usage flag to be used in setUsageFlag(int). |
static int |
NON_REPUDIATIONKey usage flag to be used in setUsageFlag(int). |
| Fields inherited from class oracle.security.crypto.cert.X509Extension |
|---|
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded |
| Constructor Summary | |
|---|---|
KeyUsageExtension()Create a new extension with the appropriate OID type. |
|
KeyUsageExtension(boolean critical)Creates a new extension with no key usage flags set. |
|
KeyUsageExtension(java.io.InputStream is) |
|
KeyUsageExtension(int[] flags, boolean critical)Creates a new extension with the given key usage flags set. |
|
| Method Summary | |
|---|---|
void |
clearAllUsageFlags() |
void |
clearUsageFlag(int flag) |
boolean[] |
getKeyUsage() |
boolean |
hasUsageFlag(int flag)Returns whether or not the given key usage flag is set. |
void |
setUsageFlag(int flag)Sets the given key usage flag. |
void |
setUsageFlags(int[] flags) |
java.lang.String |
toString()Returns a string representation of this object. |
| Methods inherited from class oracle.security.crypto.cert.X509Extension |
|---|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DIGITAL_SIGNATURE
setUsageFlag(int).
public static final int NON_REPUDIATION
setUsageFlag(int).
public static final int KEY_ENCIPHERMENT
setUsageFlag(int).
public static final int DATA_ENCIPHERMENT
setUsageFlag(int).
public static final int KEY_AGREEMENT
setUsageFlag(int).
public static final int KEY_CERT_SIGN
setUsageFlag(int).
public static final int CRL_SIGN
setUsageFlag(int).
public static final int ENCIPHER_ONLY
setUsageFlag(int).
public static final int DECIPHER_ONLY
setUsageFlag(int).
| Constructor Detail |
|---|
public KeyUsageExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.
public KeyUsageExtension(boolean critical)
critical - true if this extension is critical, false otherwise.
public KeyUsageExtension(int[] flags,
boolean critical)
flags - an array of usage flag constants defined in this class.critical - true if this extension is critical, false otherwise.
public KeyUsageExtension(java.io.InputStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public boolean hasUsageFlag(int flag)
flag - one of the key usage flag constants defined in this class.true if the flag is set, otherwise false.public void setUsageFlag(int flag)
flag - one of the key usage flag constants defined in this class.public void setUsageFlags(int[] flags)
public void clearUsageFlag(int flag)
public void clearAllUsageFlags()
public boolean[] getKeyUsage()
public java.lang.String toString()
X509ExtensiontoString in class X509Extension
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||