|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<KeyUsage> org.xwiki.crypto.pkix.params.x509certificate.extension.KeyUsage
@Unstable public enum KeyUsage
X.509 Certificates Key Usages.
Enum Constant Summary | |
---|---|
cRLSign
for CA signing certificates that are used to sign CRLs. |
|
dataEncipherment
when the subject's public key is used to encrypt user data instead of key material. |
|
decipherOnly
if the public key is used only for deciphering data. |
|
digitalSignature
for SSL client certificates, S/MIME signing certificates, and object-signing certificates. |
|
encipherOnly
if the public key is used only for enciphering data. |
|
keyAgreement
when the subject's public key is used for key agreement. |
|
keyCertSign
for all CA signing certificates. |
|
keyEncipherment
or SSL server certificates and S/MIME encryption certificates. |
|
nonRepudiation
for some S/MIME signing certificates and object-signing certificates. |
Field Summary | |
---|---|
static String |
OID
OID of KeyUsage. |
Method Summary | |
---|---|
int |
value()
|
static KeyUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static KeyUsage[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final KeyUsage digitalSignature
public static final KeyUsage nonRepudiation
public static final KeyUsage keyEncipherment
public static final KeyUsage dataEncipherment
public static final KeyUsage keyAgreement
public static final KeyUsage keyCertSign
public static final KeyUsage cRLSign
public static final KeyUsage encipherOnly
public static final KeyUsage decipherOnly
Field Detail |
---|
public static final String OID
Method Detail |
---|
public static KeyUsage[] values()
for (KeyUsage c : KeyUsage.values()) System.out.println(c);
public static KeyUsage valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int value()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |