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.
Modifier and Type | Method and 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.
|
public static final ListKeysRequest.ProtectionMode Hsm
public static final ListKeysRequest.ProtectionMode Software
public static ListKeysRequest.ProtectionMode[] values()
for (ListKeysRequest.ProtectionMode c : ListKeysRequest.ProtectionMode.values()) System.out.println(c);
public static ListKeysRequest.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 ListKeysRequest.ProtectionMode create(String key)
Copyright © 2016–2023. All rights reserved.