public enum AESKeyStrength extends Enum<AESKeyStrength>
Enum Constant and Description |
---|
AES128
Represents 128 bit AES encryption.
|
AES192
Represents 192 bit AES encryption.
|
AES256
Represents 256 bit AES encryption.
|
Modifier and Type | Field and Description |
---|---|
static AESKeyStrength |
DEFAULT
The default AES key strength Absio uses is 256 bit.
|
Modifier and Type | Method and Description |
---|---|
int |
getSizeInBits()
Get the key size in bits.
|
int |
getSizeInBytes()
Get the key size in bytes.
|
static AESKeyStrength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AESKeyStrength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AESKeyStrength AES128
public static final AESKeyStrength AES192
public static final AESKeyStrength AES256
public static final AESKeyStrength DEFAULT
public static AESKeyStrength[] values()
for (AESKeyStrength c : AESKeyStrength.values()) System.out.println(c);
public static AESKeyStrength 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 int getSizeInBits()
public int getSizeInBytes()
Copyright © 2021. All rights reserved.