Enum ListKeysRequest.ProtectionMode
- java.lang.Object
-
- java.lang.Enum<ListKeysRequest.ProtectionMode>
-
- com.oracle.bmc.keymanagement.requests.ListKeysRequest.ProtectionMode
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<ListKeysRequest.ProtectionMode>
- Enclosing class:
- ListKeysRequest
public static enum ListKeysRequest.ProtectionMode extends Enum<ListKeysRequest.ProtectionMode> implements BmcEnum
A key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.A protection mode of HSM means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of SOFTWARE means that the key persists on the server, protected by the vault’s RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of SOFTWARE are performed on the server. A protection mode of EXTERNAL mean that the key persists on the customer’s external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode of EXTERNAL are performed by external key manager.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListKeysRequest.ProtectionMode
create(String key)
String
getValue()
static ListKeysRequest.ProtectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ListKeysRequest.ProtectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Hsm
public static final ListKeysRequest.ProtectionMode Hsm
-
Software
public static final ListKeysRequest.ProtectionMode Software
-
External
public static final ListKeysRequest.ProtectionMode External
-
-
Method Detail
-
values
public static ListKeysRequest.ProtectionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ListKeysRequest.ProtectionMode c : ListKeysRequest.ProtectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ListKeysRequest.ProtectionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static ListKeysRequest.ProtectionMode create(String key)
-
-