kz.gamma.hardware.crypto.pcsc.jacarta.license
Class LicenseJaCarta

java.lang.Object
  extended by kz.gamma.hardware.crypto.pcsc.jacarta.license.LicenseJaCarta

public class LicenseJaCarta
extends java.lang.Object

Author:
Sergey Moisseyev

Field Summary
private  java.lang.String atr
           
private  javax.smartcardio.CommandAPDU capdu
           
private  javax.smartcardio.CardChannel ch
           
private static byte CLA
           
private  byte[] GAMMA_PRODUCT_ID
           
private  byte[] GAMMA_VENDOR_ID
           
private static byte LIC_OPERATION
           
private static byte P1_GET_LICENSE
           
private static byte P1_GET_LICENSE_ID
           
private static byte P1_GET_VENDOR_ID
           
private  javax.smartcardio.ResponseAPDU respApdu
           
 
Constructor Summary
LicenseJaCarta(javax.smartcardio.CardChannel ch)
           
 
Method Summary
 boolean checkLicense(byte[] lic)
           
 void disconnect()
           
 ResponceCard getLicense(byte[] vendorID, int offsetV, byte[] licenseID, int offsetL)
           
 ResponceCard getLicenseID(byte[] vendorID, int offset)
           
 ResponceCard getVendorID()
           
 ResponceCard readApplet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLA

private static final byte CLA
See Also:
Constant Field Values

LIC_OPERATION

private static final byte LIC_OPERATION
See Also:
Constant Field Values

P1_GET_VENDOR_ID

private static final byte P1_GET_VENDOR_ID
See Also:
Constant Field Values

P1_GET_LICENSE_ID

private static final byte P1_GET_LICENSE_ID
See Also:
Constant Field Values

P1_GET_LICENSE

private static final byte P1_GET_LICENSE
See Also:
Constant Field Values

respApdu

private javax.smartcardio.ResponseAPDU respApdu

capdu

private javax.smartcardio.CommandAPDU capdu

ch

private javax.smartcardio.CardChannel ch

atr

private java.lang.String atr

GAMMA_VENDOR_ID

private byte[] GAMMA_VENDOR_ID

GAMMA_PRODUCT_ID

private byte[] GAMMA_PRODUCT_ID
Constructor Detail

LicenseJaCarta

public LicenseJaCarta(javax.smartcardio.CardChannel ch)
               throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException
Method Detail

checkLicense

public boolean checkLicense(byte[] lic)

readApplet

public ResponceCard readApplet()
                        throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException

getVendorID

public ResponceCard getVendorID()
                         throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException

getLicenseID

public ResponceCard getLicenseID(byte[] vendorID,
                                 int offset)
                          throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException

getLicense

public ResponceCard getLicense(byte[] vendorID,
                               int offsetV,
                               byte[] licenseID,
                               int offsetL)
                        throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException

disconnect

public void disconnect()
                throws javax.smartcardio.CardException
Throws:
javax.smartcardio.CardException


Copyright © 2013 Gamma Technologies. All Rights Reserved.