public class TokenSafeNet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
atr |
private CommandAPDU |
capdu |
private java.util.List |
cardTerminals |
private CardChannel |
ch |
static byte |
CLA |
static byte |
CRYPTO_OPERATION |
private TerminalFactory |
factory |
static byte |
KEY_OPERATION |
static byte |
OBJECT_OPERATION |
static byte |
P1_createGostHash |
static byte |
P1_CreateKey |
static byte |
P1_CreateObject |
static byte |
P1_CreateRSAKey |
static byte |
P1_cryptRSA |
static byte |
P1_DeleteObject |
static byte |
P1_ExportKeyAlgID |
static byte |
P1_ExportPubKey |
static byte |
P1_ExportRSAPubKey |
static byte |
P1_finalGostHash |
static byte |
P1_FormatToken |
static byte |
P1_GenRandom |
static byte |
P1_GetError |
static byte |
P1_GetStatus |
static byte |
P1_InstallCertNew |
static byte |
P1_IsElementExists |
static byte |
P1_MakeDH |
static byte |
P1_ObjectCount |
static byte |
P1_ObjectNameById |
static byte |
P1_PIN_ChangePIN |
static byte |
P1_PIN_VerifyPIN |
static byte |
P1_ResetStatus |
static byte |
P1_ReturnCertNew |
static byte |
P1_Sign |
static byte |
P1_updateGostHash |
static byte |
P1_Verify |
static byte |
P2_decryptRSA |
static byte |
P2_decryptRSASSL |
static byte |
P2_encryptRSA |
static byte |
P2_encryptRSASSL |
static byte |
PIN_OPERATION |
private ResponseAPDU |
respApdu |
private Card |
sc |
static byte |
STATUS_OPERATION |
private CardTerminal |
terminal |
Constructor and Description |
---|
TokenSafeNet(java.lang.String reader) |
Modifier and Type | Method and Description |
---|---|
ResponceCard |
changePin(java.lang.String pinOld,
java.lang.String pinNew) |
ResponceCard |
createHash(byte type) |
ResponceCard |
createKey(java.lang.String name,
byte type) |
ResponceCard |
deleteObject(java.lang.String name) |
ResponceCard |
exportRSAKey(java.lang.String name) |
ResponceCard |
finalHash() |
ResponceCard |
formatToken() |
ResponceCard |
generateRSAKey(java.lang.String name,
short size,
byte algID) |
ResponceCard |
genRandom(int size) |
ResponceCard |
getCertificate(java.lang.String name) |
ResponceCard |
getKeyAlgID(java.lang.String name) |
ResponceCard |
getObjectCount() |
ResponceCard |
getObjectName(short id) |
ResponceCard |
getPublicKey(java.lang.String name) |
ResponceCard |
getStatus() |
boolean |
isObjectExists(java.lang.String name,
short type) |
ResponceCard |
logData() |
ResponceCard |
makeDH(java.lang.String name,
byte[] key,
byte[] ukm) |
ResponceCard |
resetCard() |
ResponceCard |
selectAplet() |
ResponceCard |
setCertificate(java.lang.String name,
byte[] certBlob) |
ResponceCard |
signature(java.lang.String name,
byte[] data) |
ResponceCard |
signRSA(java.lang.String name,
byte[] data) |
ResponceCard |
updateHash(byte[] data) |
ResponceCard |
verifyPin(java.lang.String pin) |
ResponceCard |
verifySign(byte[] key,
byte[] hash,
byte[] sign,
byte type) |
public static final byte CLA
public static final byte PIN_OPERATION
public static final byte P1_PIN_ChangePIN
public static final byte P1_PIN_VerifyPIN
public static final byte KEY_OPERATION
public static final byte P1_CreateKey
public static final byte P1_ExportPubKey
public static final byte P1_ExportKeyAlgID
public static final byte P1_CreateRSAKey
public static final byte OBJECT_OPERATION
public static final byte P1_CreateObject
public static final byte P1_ObjectNameById
public static final byte P1_ObjectCount
public static final byte P1_DeleteObject
public static final byte P1_IsElementExists
public static final byte P1_ExportRSAPubKey
public static final byte P1_FormatToken
public static final byte P1_InstallCertNew
public static final byte P1_ReturnCertNew
public static final byte CRYPTO_OPERATION
public static final byte P1_Sign
public static final byte P1_Verify
public static final byte P1_MakeDH
public static final byte P1_cryptRSA
public static final byte P2_encryptRSA
public static final byte P2_decryptRSA
public static final byte P2_encryptRSASSL
public static final byte P2_decryptRSASSL
public static final byte P1_createGostHash
public static final byte P1_updateGostHash
public static final byte P1_finalGostHash
public static final byte P1_GenRandom
public static final byte STATUS_OPERATION
public static final byte P1_ResetStatus
public static final byte P1_GetStatus
public static final byte P1_GetError
private ResponseAPDU respApdu
private CommandAPDU capdu
private Card sc
private CardChannel ch
private TerminalFactory factory
private java.util.List cardTerminals
private CardTerminal terminal
private java.lang.String atr
public TokenSafeNet(java.lang.String reader) throws CardException
CardException
public ResponceCard selectAplet() throws CardException
CardException
public ResponceCard verifyPin(java.lang.String pin) throws CardException
CardException
public ResponceCard changePin(java.lang.String pinOld, java.lang.String pinNew) throws CardException
CardException
public ResponceCard createKey(java.lang.String name, byte type) throws CardException
CardException
public ResponceCard deleteObject(java.lang.String name) throws CardException
CardException
public ResponceCard getObjectCount() throws CardException
CardException
public ResponceCard getObjectName(short id) throws CardException
CardException
public ResponceCard getStatus() throws CardException
CardException
public ResponceCard resetCard() throws CardException
CardException
public ResponceCard signature(java.lang.String name, byte[] data) throws CardException
CardException
public ResponceCard logData() throws CardException
CardException
public ResponceCard getPublicKey(java.lang.String name) throws CardException
CardException
public ResponceCard getKeyAlgID(java.lang.String name) throws CardException
CardException
public boolean isObjectExists(java.lang.String name, short type) throws CardException
CardException
public ResponceCard setCertificate(java.lang.String name, byte[] certBlob) throws CardException
CardException
public ResponceCard getCertificate(java.lang.String name) throws CardException
CardException
public ResponceCard verifySign(byte[] key, byte[] hash, byte[] sign, byte type) throws CardException
CardException
public ResponceCard createHash(byte type) throws CardException
CardException
public ResponceCard updateHash(byte[] data) throws CardException
CardException
public ResponceCard finalHash() throws CardException
CardException
public ResponceCard makeDH(java.lang.String name, byte[] key, byte[] ukm) throws CardException
CardException
public ResponceCard generateRSAKey(java.lang.String name, short size, byte algID) throws CardException
CardException
public ResponceCard exportRSAKey(java.lang.String name) throws CardException
CardException
public ResponceCard signRSA(java.lang.String name, byte[] data) throws CardException
CardException
public ResponceCard genRandom(int size) throws CardException
CardException
public ResponceCard formatToken() throws CardException
CardException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.