@ThreadSafe public enum AesKeyStrength extends Enum<AesKeyStrength> implements KeyStrength
| Enum Constant and Description |
|---|
BITS_128
Enum identifier for a 128 bit AES cipher key.
|
BITS_192
Enum identifier for a 192 bit AES cipher key.
|
BITS_256
Enum identifier for a 256 bit AES cipher key.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBits()
Returns the key strength in bits.
|
int |
getBytes()
Returns the key strength in bytes.
|
String |
toString()
Returns a localized display string representing this key strength.
|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfordinalpublic static final AesKeyStrength BITS_128
public static final AesKeyStrength BITS_192
public static final AesKeyStrength BITS_256
public int getBits()
getBits in interface KeyStrengthpublic int getBytes()
getBytes in interface KeyStrengthpublic String toString()
KeyStrengthtoString in interface KeyStrengthtoString in class Enum<AesKeyStrength>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 static AesKeyStrength[] values()
for (AesKeyStrength c : AesKeyStrength.values()) System.out.println(c);
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.