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
CardException
public ResponceCard getStatus() throws CardException
CardException
public ResponceCard getSerial() throws CardException
CardException
public ResponceCard verifyPin(byte right, java.lang.String pin) throws CardException
CardException
public ResponceCard changePin(byte right, java.lang.String pin) throws CardException
CardException
public ResponceCard resetcard() throws CardException
CardException
public ResponceCard isContainer() throws CardException
CardException
public ResponceCard readContainer() throws CardException
CardException
private ResponceCard selectMapDir() throws CardException
CardException
private ResponceCard delFile(short id) throws CardException
CardException
private ResponceCard createFile(short id, short size, boolean isPrivate) throws CardException
CardException
private ResponceCard createDir(short id) throws CardException
CardException
public ResponceCard writeContainer(byte[] cont) throws CardException
CardException
public ResponceCard write(int offset, byte[] data) throws CardException
CardException
public ResponceCard read(int offset, int size) throws CardException
CardException
public ResponceCard getPathDir(byte type, boolean isDir, byte id) throws CardException
type
- тип запрашиваемого каталога
PubKey 0x22
PrivKey 0x23
SecFile 0x24
Certificate 0x25
SeRSF 0x21isDir
- - true если выбирается каталогid
- - идентификатор файлаCardException
public ResponceCard getFCP(byte id) throws CardException
CardException
public int findIndx(byte tag, byte[] data)
public ResponceCard genKeyPair(int algType, byte newId) throws CardException
CardException
public ResponceCard delObject(byte id) throws CardException
CardException
public ResponceCard signature(byte id, byte[] hash) throws CardException
CardException
public ResponceCard setCertificate(byte id, byte[] certBlob) throws CardException
CardException
public ResponceCard getCertificate(byte id) throws CardException
CardException
public boolean isObjectExists(byte id, short type) throws CardException
CardException
public byte getKeyAlgID(byte id) throws CardException
CardException
public ResponceCard getPublicKey(byte id) throws CardException
CardException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.