Enum ImportKeyDetails.ProtectionMode
- java.lang.Object
-
- java.lang.Enum<ImportKeyDetails.ProtectionMode>
-
- com.oracle.bmc.keymanagement.model.ImportKeyDetails.ProtectionMode
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<ImportKeyDetails.ProtectionMode>
- Enclosing class:
- ImportKeyDetails
public static enum ImportKeyDetails.ProtectionMode extends Enum<ImportKeyDetails.ProtectionMode> implements BmcEnum
The 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. By default, a key’s protection mode is set to HSM. You can’t change a key’s protection mode after the key is created or imported.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImportKeyDetails.ProtectionMode
create(String key)
String
getValue()
static ImportKeyDetails.ProtectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImportKeyDetails.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 ImportKeyDetails.ProtectionMode Hsm
-
Software
public static final ImportKeyDetails.ProtectionMode Software
-
-
Method Detail
-
values
public static ImportKeyDetails.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 (ImportKeyDetails.ProtectionMode c : ImportKeyDetails.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 ImportKeyDetails.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 ImportKeyDetails.ProtectionMode create(String key)
-
-