public enum OpenSSLAlgorithm extends java.lang.Enum<OpenSSLAlgorithm>
| Enum Constant and Description |
|---|
AES_128_CBC
AES-128 in CBC mode.
|
AES_192_CBC
AES-192 in CBC mode.
|
AES_256_CBC
AES-256 in CBC mode.
|
DES_CBC
DES in CBC mode.
|
DES_EDE3_CBC
Triple DES in CBC mode.
|
RC2_40_CBC
40-bit RC2 in CBC mode.
|
RC2_64_CBC
64-bit RC2 in CBC mode.
|
RC2_CBC
128-bit RC2 in CBC mode.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
algorithmId
Algorithm identifier, e.g.
|
private KeyedBlockCipherSpec |
cipherSpec
Cipher algorithm specification.
|
| Modifier and Type | Method and Description |
|---|---|
static OpenSSLAlgorithm |
fromAlgorithmId(java.lang.String algorithmId)
Converts an OID to the corresponding algorithm specification.
|
java.lang.String |
getAlgorithmId() |
KeyedBlockCipherSpec |
getCipherSpec() |
static OpenSSLAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpenSSLAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenSSLAlgorithm AES_128_CBC
public static final OpenSSLAlgorithm AES_192_CBC
public static final OpenSSLAlgorithm AES_256_CBC
public static final OpenSSLAlgorithm DES_CBC
public static final OpenSSLAlgorithm DES_EDE3_CBC
public static final OpenSSLAlgorithm RC2_CBC
public static final OpenSSLAlgorithm RC2_40_CBC
public static final OpenSSLAlgorithm RC2_64_CBC
private final java.lang.String algorithmId
private final KeyedBlockCipherSpec cipherSpec
public static OpenSSLAlgorithm[] values()
for (OpenSSLAlgorithm c : OpenSSLAlgorithm.values()) System.out.println(c);
public static OpenSSLAlgorithm 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 getAlgorithmId()
public KeyedBlockCipherSpec getCipherSpec()
public static OpenSSLAlgorithm fromAlgorithmId(java.lang.String algorithmId)
algorithmId - Algorithm OID.