public enum EncryptionAlgorithm extends Enum<EncryptionAlgorithm>
Enum Constant and Description |
---|
AES_CTR_128 |
AES_CTR_256 |
Modifier and Type | Method and Description |
---|---|
Cipher |
createCipher() |
static EncryptionAlgorithm |
fromSerialization(int serialization)
Get the serialization code for this enumeration.
|
String |
getAlgorithm() |
int |
getIvLength() |
int |
getSerialization()
Get the serialization code for this enumeration.
|
byte[] |
getZeroKey() |
int |
keyLength() |
String |
toString() |
static EncryptionAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptionAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncryptionAlgorithm AES_CTR_128
public static final EncryptionAlgorithm AES_CTR_256
public static EncryptionAlgorithm[] values()
for (EncryptionAlgorithm c : EncryptionAlgorithm.values()) System.out.println(c);
public static EncryptionAlgorithm 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 String getAlgorithm()
public int getIvLength()
public Cipher createCipher()
public int keyLength()
public byte[] getZeroKey()
public int getSerialization()
public static EncryptionAlgorithm fromSerialization(int serialization)
public String toString()
toString
in class Enum<EncryptionAlgorithm>
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.