|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.linuxnet.jpcsc.Card
The Card-class offers the PCSC-functions related to connecting, disconnecting and transfering data to cards.
Field Summary | |
private long |
card
Native handle. |
private int |
proto
Protocol used. |
Constructor Summary | |
(package private) |
Card()
Constructor. |
Method Summary | |
void |
BeginTransaction()
Signal the start of a transaction. |
byte[] |
Control(int dwControlCode,
byte[] in,
int off,
int len)
Wrapper for SCardControl(). |
void |
Disconnect(int param)
Disconnect from card. |
void |
EndTransaction(int disposition)
Signal end of a transaction. |
void |
finalize()
Cleanup. |
int |
getProto()
Return protocol used. |
private int |
NativeBeginTransaction()
|
private byte[] |
NativeControl(int cc,
byte[] in,
int off,
int len)
|
private int |
NativeDisconnect(int param)
|
private int |
NativeEndTransaction(int dispo)
|
private int |
NativeReconnect(int dwSharedMode,
int dwPreferredProtos,
int dwInitialization)
|
private int |
NativeStatus(State rs)
|
private byte[] |
NativeTransmit(byte[] in,
int off,
int len)
|
private int |
NativeTransmit(byte[] in,
int inoff,
int len,
byte[] out,
int outoff)
|
void |
Reconnect(int dwSharedMode,
int dwPreferredProtos,
int dwInitialization)
Reconnect to card. |
State |
Status()
Return status of connection. |
byte[] |
Transmit(Apdu apdu)
Transmit given APDU. |
byte[] |
Transmit(byte[] in,
int off,
int len)
Transmit data. |
int |
Transmit(byte[] in,
int inoff,
int len,
byte[] out,
int outoff)
Transmit data. |
byte[] |
Transmit(int cla,
int ins,
int p1,
int p2,
byte[] in)
Transmit data to the card. |
byte[] |
Transmit(int cla,
int ins,
int p1,
int p2,
byte[] in,
int le)
Transmit data to the card. |
byte[] |
Transmit(int cla,
int ins,
int p1,
int p2,
byte[] in,
int off,
int len)
Transmit data to the card. |
byte[] |
Transmit(int cla,
int ins,
int p1,
int p2,
byte[] in,
int off,
int len,
int le)
Transmit data to the card. |
byte[] |
Transmit(int cla,
int ins,
int p1,
int p2,
int p3,
byte[] in,
int off,
int le)
Transmit data to the card. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long card
private int proto
Constructor Detail |
Card()
Method Detail |
public final int getProto()
public final void finalize()
public final void Disconnect(int param)
public final void Reconnect(int dwSharedMode, int dwPreferredProtos, int dwInitialization)
public final byte[] Transmit(Apdu apdu)
public final byte[] Transmit(byte[] in, int off, int len)
public final byte[] Transmit(int cla, int ins, int p1, int p2, int p3, byte[] in, int off, int le)
cla
- CLA byte of APDU (byte #0)ins
- INS byte of APDU (byte #1)p1
- P1 byte of APDU (byte #2)p2
- P2 byte of APDU (byte #3)p3
- P3 or LC byte of APDU (byte #4). This byte is omitted if parameter has value -1, otherwise it contains number of bytes in buffer in sent to card.in
- byte array containing command data of APDU.off
- offset starting at which data sending is to beginle
- LE byte of APDU (appended to APDU). This byte is omitted if parameter has value -1.
PCSCException
- if communication failed or if some parameters are wrongpublic final byte[] Transmit(int cla, int ins, int p1, int p2, byte[] in, int off, int len, int le)
cla
- CLA byte of APDU (byte #0)ins
- INS byte of APDU (byte #1)p1
- P1 byte of APDU (byte #2)p2
- P2 byte of APDU (byte #3)in
- byte array containing command data of APDU.off
- offset starting at which data sending is to beginlen
- number of bytes to be transmittedle
- LE byte of APDU (appended to APDU). This byte is omitted if parameter has value -1.
PCSCException
- if communication failed or if some parameters are wrongpublic final byte[] Transmit(int cla, int ins, int p1, int p2, byte[] in, int le)
cla
- CLA byte of APDU (byte #0)ins
- INS byte of APDU (byte #1)p1
- P1 byte of APDU (byte #2)p2
- P2 byte of APDU (byte #3)in
- byte array containing command data of APDU.le
- LE byte of APDU (appended to APDU). This byte is omitted if parameter has value -1.
PCSCException
- if communication failed or if some parameters are wrongpublic final byte[] Transmit(int cla, int ins, int p1, int p2, byte[] in, int off, int len)
cla
- CLA byte of APDU (byte #0)ins
- INS byte of APDU (byte #1)p1
- P1 byte of APDU (byte #2)p2
- P2 byte of APDU (byte #3)in
- byte array containing command data of APDU.off
- offset starting at which data sending is to beginlen
- number of bytes to be transmitted
PCSCException
- if communication failed or if some parameters are wrongpublic final byte[] Transmit(int cla, int ins, int p1, int p2, byte[] in)
cla
- CLA byte of APDU (byte #0)ins
- INS byte of APDU (byte #1)p1
- P1 byte of APDU (byte #2)p2
- P2 byte of APDU (byte #3)in
- byte array containing command data of APDU.
PCSCException
- if communication failed or if some parameters are wrongpublic final int Transmit(byte[] in, int inoff, int len, byte[] out, int outoff)
public final State Status()
public final void BeginTransaction()
public final void EndTransaction(int disposition)
public final byte[] Control(int dwControlCode, byte[] in, int off, int len)
private int NativeDisconnect(int param)
private byte[] NativeTransmit(byte[] in, int off, int len)
private int NativeTransmit(byte[] in, int inoff, int len, byte[] out, int outoff)
private int NativeStatus(State rs)
private int NativeBeginTransaction()
private int NativeEndTransaction(int dispo)
private int NativeReconnect(int dwSharedMode, int dwPreferredProtos, int dwInitialization)
private byte[] NativeControl(int cc, byte[] in, int off, int len)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |