public static enum AesBytesEncryptor.CipherAlgorithm extends java.lang.Enum<AesBytesEncryptor.CipherAlgorithm>
Modifier and Type | Method and Description |
---|---|
javax.crypto.Cipher |
createCipher() |
BytesKeyGenerator |
defaultIvGenerator() |
java.security.spec.AlgorithmParameterSpec |
getParameterSpec(byte[] iv) |
java.lang.String |
toString() |
static AesBytesEncryptor.CipherAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AesBytesEncryptor.CipherAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AesBytesEncryptor.CipherAlgorithm CBC
public static final AesBytesEncryptor.CipherAlgorithm GCM
public static AesBytesEncryptor.CipherAlgorithm[] values()
for (AesBytesEncryptor.CipherAlgorithm c : AesBytesEncryptor.CipherAlgorithm.values()) System.out.println(c);
public static AesBytesEncryptor.CipherAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<AesBytesEncryptor.CipherAlgorithm>
public java.security.spec.AlgorithmParameterSpec getParameterSpec(byte[] iv)
public javax.crypto.Cipher createCipher()
public BytesKeyGenerator defaultIvGenerator()