Enum Constant and Description |
---|
ANY
No special restrictions apply.
|
DECONLY
The key may only be used to perform decrypt operations.
|
DERIVE
The key may only be used to derive other keys.
|
ENCDEC
The key may be used to perform both encrypt and decrypt operations.
|
ENCONLY
The key may only be used to perform encrypt operations.
|
GENONLY
The key may only be used to perform MAC generate operations.
|
GENSIGN
The key may only be used to perform digital signature generation
operations.
|
GENVER
The key may be used to perform MAC calculation (both generate &
verify) operations.
|
KEYVAR
The key may be used to create key variants.
|
SIGNVER
The key may be used to perform both digital signature generation and
verification operations.
|
VERONLY
The key may only be used to perform digital signature verification
operations.
|
Modifier and Type | Method and Description |
---|---|
char |
getCode()
Get code of key use mode.
|
java.lang.String |
getName()
Get name of key use mode.
|
java.lang.String |
toString() |
static ModeOfUse |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModeOfUse |
valueOfByCode(char code)
Returns the enum constant of this type with the specified
code . |
static ModeOfUse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModeOfUse ENCDEC
public static final ModeOfUse GENVER
public static final ModeOfUse DECONLY
public static final ModeOfUse ENCONLY
public static final ModeOfUse GENONLY
public static final ModeOfUse ANY
public static final ModeOfUse GENSIGN
public static final ModeOfUse SIGNVER
public static final ModeOfUse VERONLY
public static final ModeOfUse DERIVE
public static final ModeOfUse KEYVAR
public static ModeOfUse[] values()
for (ModeOfUse c : ModeOfUse.values()) System.out.println(c);
public static ModeOfUse 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<ModeOfUse>
public static ModeOfUse 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.