public enum OpenSSLAlgorithm extends 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 | Method and Description |
---|---|
static OpenSSLAlgorithm |
fromAlgorithmId(String algorithmId)
Converts an OID to the corresponding algorithm specification.
|
String |
getAlgorithmId() |
KeyedBlockCipherSpec |
getCipherSpec() |
static OpenSSLAlgorithm |
valueOf(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
public static OpenSSLAlgorithm[] values()
for (OpenSSLAlgorithm c : OpenSSLAlgorithm.values()) System.out.println(c);
public static OpenSSLAlgorithm 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 getAlgorithmId()
public KeyedBlockCipherSpec getCipherSpec()
public static OpenSSLAlgorithm fromAlgorithmId(String algorithmId)
algorithmId
- Algorithm OID.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.