public static enum Key.ProtectionMode extends Enum<Key.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. 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.
Enum Constant and Description |
---|
External |
Hsm |
Software |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static Key.ProtectionMode |
create(String key) |
String |
getValue() |
static Key.ProtectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Key.ProtectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Key.ProtectionMode Hsm
public static final Key.ProtectionMode Software
public static final Key.ProtectionMode External
public static final Key.ProtectionMode UnknownEnumValue
public static Key.ProtectionMode[] values()
for (Key.ProtectionMode c : Key.ProtectionMode.values()) System.out.println(c);
public static Key.ProtectionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Key.ProtectionMode create(String key)
Copyright © 2016–2024. All rights reserved.