public class KeySerialNumber extends java.lang.Object implements java.io.Serializable, Loggeable
EncryptedPIN,
Serialized Form| Constructor and Description |
|---|
KeySerialNumber()
Constructs a key serial number object
|
KeySerialNumber(byte[] binKSN,
int idLength,
int deviceLength,
int counterLength)
Constructs a key serial number object from its binary representation.
|
KeySerialNumber(java.lang.String hexKSN,
int idLength,
int deviceLength,
int counterLength)
Constructs a key serial number object from its hexadecimal representation.
|
KeySerialNumber(java.lang.String baseKeyID,
java.lang.String deviceID,
java.lang.String transactionCounter)
Constructs a key serial number object
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent)
dumps Key Serial Number
|
java.lang.String |
getBaseKeyID() |
java.lang.String |
getDeviceID() |
java.lang.String |
getTransactionCounter() |
void |
setBaseKeyID(java.lang.String baseKeyID) |
void |
setDeviceID(java.lang.String deviceID) |
void |
setTransactionCounter(java.lang.String transactionCounter) |
public KeySerialNumber()
public KeySerialNumber(java.lang.String baseKeyID,
java.lang.String deviceID,
java.lang.String transactionCounter)
baseKeyID - a HexString representing the BaseKeyID (also called KeySet ID)deviceID - a HexString representing the Device ID (also called TRSM ID)transactionCounter - a HexString representing the transaction counterpublic KeySerialNumber(java.lang.String hexKSN,
int idLength,
int deviceLength,
int counterLength)
hexKSN - hexadecimal representation of the KSN.idLength - length of the base key ID.deviceLength - length of the device ID.counterLength - length of the transaction counter.public KeySerialNumber(byte[] binKSN,
int idLength,
int deviceLength,
int counterLength)
binKSN - binary representation of the KSN.idLength - length of the base key ID.deviceLength - length of the device ID.counterLength - length of the transaction counter.public void setBaseKeyID(java.lang.String baseKeyID)
baseKeyID - a HexString representing the BaseKeyID (also called KeySet ID)public java.lang.String getBaseKeyID()
public void setDeviceID(java.lang.String deviceID)
deviceID - a HexString representing the Device ID (also called TRSM ID)public java.lang.String getDeviceID()
public void setTransactionCounter(java.lang.String transactionCounter)
transactionCounter - a HexString representing the transaction counterpublic java.lang.String getTransactionCounter()