com.pax.dal.entity
Class KeyInfo
- java.lang.Object
-
- com.pax.dal.entity.KeyInfo
-
public class KeyInfo extends java.lang.Object
存放密钥信息的实体类Entity class for storing key information- Since:
- V3.25.00
-
-
Constructor Summary
Constructors Constructor and Description KeyInfo(byte keyType, byte keyIndex, short keyLen, byte[] KCV, byte[] KSN)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte[]getKCV()获取KCVGet KCVbytegetKeyIndex()获取密钥索引Get key indexshortgetKeyLen()获取密钥长度Get key lengthbytegetKeyType()获取密钥类型Get key typebyte[]getKSN()获取KSNGet KSN
-
-
-
Constructor Detail
-
KeyInfo
public KeyInfo(byte keyType, byte keyIndex, short keyLen, byte[] KCV, byte[] KSN)
-
-
Method Detail
-
getKeyType
public byte getKeyType()
获取密钥类型Get key type- Returns:
- key type
-
getKeyIndex
public byte getKeyIndex()
获取密钥索引Get key index- Returns:
- key index
-
getKeyLen
public short getKeyLen()
获取密钥长度Get key length- Returns:
- 密钥长度,对称密钥为Bytes, 非对称密钥为BitsKey length, symmetric key is Bytes, asymmetric key is Bits
-
getKCV
public byte[] getKCV()
获取KCVGet KCV- Returns:
- KCV or "N/A"
-
getKSN
public byte[] getKSN()
获取KSNGet KSN- Returns:
- KSN
-
-