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()
      获取KCV
      Get KCV
      byte getKeyIndex()
      获取密钥索引
      Get key index
      short getKeyLen()
      获取密钥长度
      Get key length
      byte getKeyType()
      获取密钥类型
      Get key type
      byte[] getKSN()
      获取KSN
      Get KSN
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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, 非对称密钥为Bits
        Key length, symmetric key is Bytes, asymmetric key is Bits
      • getKCV

        public byte[] getKCV()
        获取KCV
        Get KCV
        Returns:
        KCV or "N/A"
      • getKSN

        public byte[] getKSN()
        获取KSN
        Get KSN
        Returns:
        KSN