public class TokenKzToken
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
atr |
private CommandAPDU |
capdu |
private CardChannel |
ch |
private TerminalFactory |
factory |
private boolean |
isSupportTAPDU |
private ResponseAPDU |
respApdu |
private Card |
sc |
private CardTerminal |
terminal |
| Constructor and Description |
|---|
TokenKzToken(java.lang.String reader) |
| Modifier and Type | Method and Description |
|---|---|
ResponceCard |
changePin(byte right,
java.lang.String pin) |
private ResponceCard |
createDir(short id) |
private ResponceCard |
createFile(short id,
short size,
boolean isPrivate) |
private ResponceCard |
delFile(short id) |
ResponceCard |
delObject(byte id) |
int |
findIndx(byte tag,
byte[] data) |
ResponceCard |
genKeyPair(int algType,
byte newId) |
ResponceCard |
getCertificate(byte id) |
ResponceCard |
getFCP(byte id) |
byte |
getKeyAlgID(byte id) |
ResponceCard |
getPathDir(byte type,
boolean isDir,
byte id)
Функция выбирает каталог или файл
|
ResponceCard |
getPublicKey(byte id) |
ResponceCard |
getSerial() |
ResponceCard |
getStatus() |
ResponceCard |
isContainer() |
boolean |
isObjectExists(byte id,
short type) |
ResponceCard |
read(int offset,
int size) |
ResponceCard |
readContainer() |
ResponceCard |
resetcard() |
private ResponceCard |
selectMapDir() |
ResponceCard |
setCertificate(byte id,
byte[] certBlob) |
ResponceCard |
signature(byte id,
byte[] hash) |
ResponceCard |
verifyPin(byte right,
java.lang.String pin) |
ResponceCard |
write(int offset,
byte[] data) |
ResponceCard |
writeContainer(byte[] cont) |
private ResponseAPDU respApdu
private CommandAPDU capdu
private Card sc
private CardChannel ch
private TerminalFactory factory
private CardTerminal terminal
private java.lang.String atr
private boolean isSupportTAPDU
public TokenKzToken(java.lang.String reader)
throws CardException
CardExceptionpublic ResponceCard getStatus() throws CardException
CardExceptionpublic ResponceCard getSerial() throws CardException
CardExceptionpublic ResponceCard verifyPin(byte right, java.lang.String pin) throws CardException
CardExceptionpublic ResponceCard changePin(byte right, java.lang.String pin) throws CardException
CardExceptionpublic ResponceCard resetcard() throws CardException
CardExceptionpublic ResponceCard isContainer() throws CardException
CardExceptionpublic ResponceCard readContainer() throws CardException
CardExceptionprivate ResponceCard selectMapDir() throws CardException
CardExceptionprivate ResponceCard delFile(short id) throws CardException
CardExceptionprivate ResponceCard createFile(short id, short size, boolean isPrivate) throws CardException
CardExceptionprivate ResponceCard createDir(short id) throws CardException
CardExceptionpublic ResponceCard writeContainer(byte[] cont) throws CardException
CardExceptionpublic ResponceCard write(int offset, byte[] data) throws CardException
CardExceptionpublic ResponceCard read(int offset, int size) throws CardException
CardExceptionpublic ResponceCard getPathDir(byte type, boolean isDir, byte id) throws CardException
type - тип запрашиваемого каталога
PubKey 0x22
PrivKey 0x23
SecFile 0x24
Certificate 0x25
SeRSF 0x21isDir - - true если выбирается каталогid - - идентификатор файлаCardExceptionpublic ResponceCard getFCP(byte id) throws CardException
CardExceptionpublic int findIndx(byte tag,
byte[] data)
public ResponceCard genKeyPair(int algType, byte newId) throws CardException
CardExceptionpublic ResponceCard delObject(byte id) throws CardException
CardExceptionpublic ResponceCard signature(byte id, byte[] hash) throws CardException
CardExceptionpublic ResponceCard setCertificate(byte id, byte[] certBlob) throws CardException
CardExceptionpublic ResponceCard getCertificate(byte id) throws CardException
CardExceptionpublic boolean isObjectExists(byte id,
short type)
throws CardException
CardExceptionpublic byte getKeyAlgID(byte id)
throws CardException
CardExceptionpublic ResponceCard getPublicKey(byte id) throws CardException
CardExceptionCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.