public class TokenGammaJaCarta
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
atr |
private CommandAPDU |
capdu |
private CardChannel |
ch |
private static byte |
CLA |
private static byte |
CRYPTO_OPERATION |
private TerminalFactory |
factory |
private static byte |
KEY_OPERATION |
private static byte |
OBJECT_OPERATION |
static byte |
P1_CreateAttrib |
private static byte |
P1_createGostHash |
private static byte |
P1_CreateKey |
private static byte |
P1_CreateObject |
private static byte |
P1_CreateRSAKey |
private static byte |
P1_cryptRSA |
private static byte |
P1_DeleteObject |
private static byte |
P1_ExportKeyAlgID |
private static byte |
P1_ExportPubKey |
private static byte |
P1_ExportRSAPubKey |
private static byte |
P1_finalGostHash |
private static byte |
P1_FormatToken |
static byte |
P1_GetError |
static byte |
P1_GetStatus |
private static byte |
P1_InstallCertNew |
private static byte |
P1_IsElementExists |
private static byte |
P1_MakeDH |
private static byte |
P1_ObjectCount |
private static byte |
P1_ObjectNameById |
private static byte |
P1_PIN_Change |
private static byte |
P1_PIN_ChangeAdminPIN |
private static byte |
P1_PIN_ResetPINCounter |
private static byte |
P1_PIN_Verify |
private static byte |
P1_PIN_VerifyAdminPIN |
static byte |
P1_ReadAttrib |
static byte |
P1_ResetStatus |
private static byte |
P1_ReturnCertNew |
private static byte |
P1_Sign |
private static byte |
P1_updateGostHash |
private static byte |
P1_Verify |
private static byte |
P2_decryptRSA |
private static byte |
P2_decryptRSASSL |
private static byte |
P2_encryptRSA |
private static byte |
P2_encryptRSASSL |
private static byte |
PIN_OPERATION |
private ResponseAPDU |
respApdu |
private Card |
sc |
static byte |
STATUS_OPERATION |
private CardTerminal |
terminal |
Constructor and Description |
---|
TokenGammaJaCarta(java.lang.String reader) |
Modifier and Type | Method and Description |
---|---|
ResponceCard |
changeAdminPin(java.lang.String pinOld,
java.lang.String pinNew) |
ResponceCard |
changePin(java.lang.String pinOld,
java.lang.String pinNew) |
ResponceCard |
createHash() |
ResponceCard |
createKey(java.lang.String name,
byte type) |
ResponceCard |
deleteObject(java.lang.String name) |
void |
disconnect() |
ResponceCard |
exportRSAKey(java.lang.String name) |
ResponceCard |
finalHash() |
ResponceCard |
formatToken() |
ResponceCard |
generateRSAKey(java.lang.String name,
short size,
byte algID) |
ResponceCard |
getAttribute(java.lang.String name) |
ResponceCard |
getCertificate(java.lang.String name) |
ResponceCard |
getError() |
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 |
resetPINCounter() |
ResponceCard |
selectApplet() |
ResponceCard |
setAttribute(java.lang.String name,
byte[] attr) |
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 |
verifyAdminPin(java.lang.String pin) |
ResponceCard |
verifyPin(java.lang.String pin) |
ResponceCard |
verifySign(byte[] key,
byte[] hash,
byte[] sign,
byte type) |
private static final byte CLA
private static final byte PIN_OPERATION
private static final byte P1_PIN_Change
private static final byte P1_PIN_Verify
private static final byte P1_PIN_VerifyAdminPIN
private static final byte P1_PIN_ChangeAdminPIN
private static final byte P1_PIN_ResetPINCounter
private static final byte KEY_OPERATION
private static final byte P1_CreateKey
private static final byte P1_ExportPubKey
private static final byte P1_ExportKeyAlgID
private static final byte P1_CreateRSAKey
private static final byte OBJECT_OPERATION
private static final byte P1_CreateObject
private static final byte P1_ObjectNameById
private static final byte P1_ObjectCount
private static final byte P1_DeleteObject
private static final byte P1_IsElementExists
private static final byte P1_ExportRSAPubKey
private static final byte P1_FormatToken
private static final byte P1_InstallCertNew
private static final byte P1_ReturnCertNew
public static final byte P1_CreateAttrib
public static final byte P1_ReadAttrib
private static final byte CRYPTO_OPERATION
private static final byte P1_Sign
private static final byte P1_Verify
private static final byte P1_MakeDH
private static final byte P1_cryptRSA
private static final byte P2_encryptRSA
private static final byte P2_decryptRSA
private static final byte P2_encryptRSASSL
private static final byte P2_decryptRSASSL
private static final byte P1_createGostHash
private static final byte P1_updateGostHash
private static final byte P1_finalGostHash
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 CardTerminal terminal
private java.lang.String atr
public TokenGammaJaCarta(java.lang.String reader) throws CardException
CardException
public ResponceCard selectApplet() 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() 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 getError() throws CardException
CardException
public ResponceCard setAttribute(java.lang.String name, byte[] attr) throws CardException
CardException
public ResponceCard getAttribute(java.lang.String name) throws CardException
CardException
public ResponceCard verifyAdminPin(java.lang.String pin) throws CardException
CardException
public ResponceCard changeAdminPin(java.lang.String pinOld, java.lang.String pinNew) throws CardException
CardException
public ResponceCard resetPINCounter() throws CardException
CardException
public ResponceCard formatToken() throws CardException
CardException
public void disconnect() throws CardException
CardException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.