public class SmartCardUtil extends Object
Constructor and Description |
---|
SmartCardUtil() |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.cert.X509CertificateHolder |
buildX509Certificate(List<byte[]> dataList) |
static String |
byteArrayToHexString(byte[] data) |
static int |
byteToUnsignedint(byte b) |
static byte[] |
getFormat1PIN(String pin) |
static byte[] |
getFormat2PIN(String pin)
Format 2 PIN block The format 2 PIN block is constructed thus: 1 nibble
with the value of 2, which identifies this as a format 2 block 1 nibble
encoding the length N of the PIN N nibbles, each encoding one PIN digit
14-N nibbles, each holding the "fill" value 15
|
public static String byteArrayToHexString(byte[] data)
public static int byteToUnsignedint(byte b)
public static org.bouncycastle.cert.X509CertificateHolder buildX509Certificate(List<byte[]> dataList) throws javax.smartcardio.CardException
javax.smartcardio.CardException
public static byte[] getFormat1PIN(String pin) throws javax.smartcardio.CardException
javax.smartcardio.CardException
public static byte[] getFormat2PIN(String pin) throws javax.smartcardio.CardException
javax.smartcardio.CardException
Copyright © 2021. All rights reserved.