|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
ObjectEnum<KeyUsage>
KeyUsage
public enum KeyUsage
KeyBinding KeyUsage constant definitions.
[175] The <KeyUsage> element specifies one or more intended uses of
the key. If no <KeyUsage> is specified all uses are permitted.
[176] If a key usage is specified in a KeyBinding that the cryptographic
algorithm associated with the key does not support the element MUST be
ignored. If a key usage is specified in a QueryKeyBinding however the
key usage forms part of the criteria the service should attempt to match.
[177] For example if a KeyBinding specifies the key usage 'Encryption'
for a Digital Signature Algorithm key the relying application should ignore
the key usage element. If however a client makes a request that contains a
QueryKeyBinding that specifies the key usage 'Encryption' the service
should not return a Digital Signature Algorithm key.
| Enum Constant Summary | |
|---|---|
ENCRYPTION
The key pair may be used for encryption and decryption. |
|
EXCHANGE
The key pair may be used for key exchange. |
|
SIGNATURE
The key pair may be used for signature and verification. |
|
| Method Summary | |
|---|---|
String |
toString()
Returns the String representation of this enum constant, including the namespace. |
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 Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final KeyUsage ENCRYPTION
public static final KeyUsage SIGNATURE
public static final KeyUsage EXCHANGE
| 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 String toString()
toString in class Enum<KeyUsage>String representation including the namespace.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||