Enum Constant and Description |
---|
AES
AES - Advanced Encryption Standard.
|
DES
DES - Data Encryption Standard.
|
DSA
DSA - Digital Signature Algorithm.
|
EC
Elliptic curve.
|
HMAC
HMAC - Hash Message Authentication Code.
|
RSA
RSA - Rivest–Shamir–Adleman.
|
TDES
TDES - Triple Data Encryption Standard.
|
Modifier and Type | Method and Description |
---|---|
char |
getCode()
Get algorithm code.
|
java.lang.String |
getName()
Get algorithm name.
|
java.lang.String |
toString() |
static Algorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Algorithm |
valueOfByCode(char code)
Returns the enum constant of this type with the specified
code . |
static Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Algorithm AES
public static final Algorithm DES
public static final Algorithm EC
public static final Algorithm HMAC
public static final Algorithm RSA
public static final Algorithm DSA
public static final Algorithm TDES
Also known as TDSA (official Triple Data Encryption Algorithm).
public static Algorithm[] values()
for (Algorithm c : Algorithm.values()) System.out.println(c);
public static Algorithm 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 char getCode()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<Algorithm>
public static Algorithm valueOfByCode(char code)
code
.code
- the string must match exactly with identifier specified by
ISO 8583-1:2003(E) Table A.22 — Transaction type codesnull
if unknown.