public class KeyInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
algorithm
algorithm See
ALG_3DES |
int |
keyID
key index.
|
int |
keyType
|
int |
masterKeyID
Master key index[0x00, ..., 0x09],Only used when the key type is
KEY_TYPE_MK_SK . |
public int keyType
public int masterKeyID
KEY_TYPE_MK_SK
.public int keyID
If the key type is KEY_TYPE_MK_SK
, the constants are as follows:USER_KEY_ID_PIN
,
USER_KEY_ID_MAC
,USER_KEY_ID_DATA
If the key type is the other three type, its' the key index.
public int algorithm
ALG_3DES
public KeyInfo(int keyType, int masterKeyID, int keyID, int algorithm)
keyType
- KEY_TYPE_MK_SK
masterKeyID
- from 0 to 9.keyID
- switch 0 or 1 or 2.algorithm
- See ALG_3DES
public KeyInfo(int keyType, int keyID, int algorithm)
keyType
- KEY_TYPE_TDUKPT
, KEY_TYPE_TDUKPT_2009
keyID
- switch 0 or 1 or 2 .algorithm
- See ALG_3DES