@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.351Z") @Stability(value=Stable) public enum KeyUsage extends Enum<KeyUsage>
Example:
Key key = Key.Builder.create(this, "MyKey")
.keySpec(KeySpec.ECC_SECG_P256K1) // Default to SYMMETRIC_DEFAULT
.keyUsage(KeyUsage.SIGN_VERIFY)
.build();
| Enum Constant and Description |
|---|
ENCRYPT_DECRYPT
Encryption and decryption.
|
SIGN_VERIFY
Signing and verification.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
@Stability(value=Stable) public static final KeyUsage ENCRYPT_DECRYPT
@Stability(value=Stable) public static final KeyUsage SIGN_VERIFY
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 nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.