public class KeyUsage
extends java.lang.Object
implements java.io.Serializable
Each value repesents bytes 5-6 of the keyblock header.
Modifier and Type | Field and Description |
---|---|
static KeyUsage |
BDK
TR-31 BDK Base Derivation Key.
|
static KeyUsage |
CVK
TR-31 CVK Card Verification Key.
|
static KeyUsage |
EMVACMK
TR-31 Application Cryptograms Key.
|
static KeyUsage |
EMVCPMK
TR-31 Card Personalization Key.
|
static KeyUsage |
EMVDAMK
TR-31 Data Authentication Code Key.
|
static KeyUsage |
EMVDNMK
TR-31 Dynamic Numbers Key.
|
static KeyUsage |
EMVMPMK
TR-31 Master Personalization Key.
|
static KeyUsage |
EMVOTMK
TR-31 Chip card Master Key.
|
static KeyUsage |
EMVSCMK
TR-31 Secure Messaging for Confidentiality Key.
|
static KeyUsage |
EMVSIMK
TR-31 Secure Messaging for Integrity.
|
static KeyUsage |
ENC
TR-31 Data Encryption Key.
|
static KeyUsage |
IKEY
TR-31 DUKPT Initial Key (IKEY aka IPEK).
|
static KeyUsage |
INIT
TR-31 Initialization Value.
|
static KeyUsage |
ISOMAC0
TR-31 ISO 16609 MAC algorithm 1 Key (using 3-DES).
|
static KeyUsage |
ISOMAC1
TR-31 ISO 9797-1 MAC algorithm 1 Key.
|
static KeyUsage |
ISOMAC2
TR-31 ISO 9797-1 MAC algorithm 2 Key.
|
static KeyUsage |
ISOMAC3
TR-31 ISO 9797-1 MAC algorithm 3 Key.
|
static KeyUsage |
ISOMAC4
TR-31 ISO 9797-1 MAC algorithm 4 Key.
|
static KeyUsage |
ISOMAC5
TR-31 ISO 9797-1 MAC algorithm 5 Key.
|
static KeyUsage |
KEK
TR-31 Generic Key Encryption / Wrapping Key.
|
static KeyUsage |
KEKWRAP
TR-31 Key Block Protection Key.
|
static KeyUsage |
PINENC
TR-31 Generic PIN Encription Key.
|
static KeyUsage |
PINV3624
TR-31 PIN Verification Key (IBM 3624 algorithm).
|
static KeyUsage |
PINVER
TR-31 Generic PIN Verification Key.
|
protected static java.util.Map<java.lang.String,KeyUsage> |
TR31MAP |
static KeyUsage |
VISAPVV
TR-31 PIN Verification Key (Visa PVV algorithm).
|
Modifier | Constructor and Description |
---|---|
protected |
KeyUsage(java.lang.String code,
java.lang.String name)
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,KeyUsage> |
entries() |
java.lang.String |
getCode()
Get key usage code.
|
java.lang.String |
getName()
Get key usage name.
|
java.lang.String |
toString() |
static KeyUsage |
valueOfByCode(java.lang.String code)
Returns the enum constant of this type with the specified
code . |
protected static final java.util.Map<java.lang.String,KeyUsage> TR31MAP
public static final KeyUsage BDK
public static final KeyUsage IKEY
public static final KeyUsage CVK
public static final KeyUsage ENC
public static final KeyUsage INIT
Used for protect eg. Initalization Vector or Decimalization Table.
public static final KeyUsage KEK
public static final KeyUsage KEKWRAP
public static final KeyUsage ISOMAC0
public static final KeyUsage ISOMAC1
public static final KeyUsage ISOMAC2
public static final KeyUsage ISOMAC3
public static final KeyUsage ISOMAC4
public static final KeyUsage ISOMAC5
public static final KeyUsage PINENC
public static final KeyUsage PINVER
public static final KeyUsage PINV3624
public static final KeyUsage VISAPVV
public static final KeyUsage EMVACMK
public static final KeyUsage EMVSCMK
public static final KeyUsage EMVSIMK
public static final KeyUsage EMVDAMK
public static final KeyUsage EMVDNMK
public static final KeyUsage EMVCPMK
public static final KeyUsage EMVOTMK
public static final KeyUsage EMVMPMK
protected KeyUsage(java.lang.String code, java.lang.String name)
The constructor is protected to guarantee only one instance of the key
usage in the entire JVM. This makes it possible to use the operator
==
or !=
as it does for enums.
code
- the key usage codename
- the usage namepublic java.lang.String getCode()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public static KeyUsage valueOfByCode(java.lang.String code)
code
.code
- null
if unknown.public static java.util.Map<java.lang.String,KeyUsage> entries()