com.linuxnet.jpcsc
Class PCSC

java.lang.Object
  extended bycom.linuxnet.jpcsc.PCSC

public final class PCSC
extends java.lang.Object

Warning, Error, Parameter Codes.


Field Summary
static int ABSENT
          Card is absent
static int E_CANCELLED
          Error code
static int E_CANT_DISPOSE
          Error code
static int E_CARD_UNSUPPORTED
          Error code
static int E_DUPLICATE_READER
          Error code
static int E_INSUFFICIENT_BUFFER
          Error code
static int E_INVALID_ATR
          Error code
static int E_INVALID_HANDLE
          Error code
static int E_INVALID_PARAMETER
          Error code
static int E_INVALID_TARGET
          Error code
static int E_INVALID_VALUE
          Error code
static int E_NO_MEMORY
          Error code
static int E_NO_SERVICE
          Error code
static int E_NO_SMARTCARD
          Error code
static int E_NOT_READY
          Error code
static int E_NOT_TRANSACTED
          Error code
static int E_PCI_TOO_SMALL
          Error code
static int E_PROTO_MISMATCH
          Error code
static int E_READER_UNAVAILABLE
          Error code
static int E_READER_UNSUPPORTED
          Error code
static int E_SERVICE_STOPPED
          Error code
static int E_SHARING_VIOLATION
          Error code
static int E_SYSTEM_CANCELLED
          Error code
static int E_TIMEOUT
          Error code
static int E_UNKNOWN_CARD
          Error code
static int E_UNKNOWN_READER
          Error code
static int EJECT_CARD
          Eject on close
static int F_COMM_ERROR
          Error code
static int F_INTERNAL_ERROR
          Error code
static int F_UNKNOWN_ERROR
          Error code
static int F_WAITED_TOO_LONG
          Error code
static int INFINITE
          Infinite timeout.
static int LEAVE_CARD
          Do nothing on close
static int NEGOTIABLE
          Ready for PTS
static java.lang.String pcscNativeLibName
          Name of the native library we depend on.
static int POWERED
          Card is powered
static int PRESENT
          Card is present
static int PROTOCOL_ANY
          IFD determines protocol.
static int PROTOCOL_DEFAULT
          IFD determines protocol.
static int PROTOCOL_RAW
          Raw active protocol.
static int PROTOCOL_T0
          T=0 active protocol.
static int PROTOCOL_T1
          T=1 active protocol.
static int RESET_CARD
          Reset on close
static int SCARD_ATTR_ASYNC_PROTOCOL_TYPES
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ATR_STRING
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CHANNEL_ID
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CHARACTERISTICS
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_BWT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_CLK
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_CWT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_D
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_EBC_ENCODING
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_F
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_IFSC
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_IFSD
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_IO_STATE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_N
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_PROTOCOL_TYPE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_CURRENT_W
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEFAULT_CLK
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEFAULT_DATA_RATE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_FRIENDLY_NAME_A
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_FRIENDLY_NAME_W
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_IN_USE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_SYSTEM_NAME_A
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_SYSTEM_NAME_W
          Tag for requesting card and reader attributes
static int SCARD_ATTR_DEVICE_UNIT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ESC_AUTHREQUEST
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ESC_CANCEL
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ESC_RESET
          Tag for requesting card and reader attributes
static int SCARD_ATTR_EXTENDED_BWT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ICC_INTERFACE_STATUS
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ICC_PRESENCE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_ICC_TYPE_PER_ATR
          Tag for requesting card and reader attributes
static int SCARD_ATTR_MAX_CLK
          Tag for requesting card and reader attributes
static int SCARD_ATTR_MAX_DATA_RATE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_MAX_IFSD
          Tag for requesting card and reader attributes
static int SCARD_ATTR_MAXINPUT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_POWER_MGMT_SUPPORT
          Tag for requesting card and reader attributes
static int SCARD_ATTR_SUPRESS_T1_IFS_REQUEST
          Tag for requesting card and reader attributes
static int SCARD_ATTR_SYNC_PROTOCOL_TYPES
          Tag for requesting card and reader attributes
static int SCARD_ATTR_USER_AUTH_INPUT_DEVICE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_VENDOR_IFD_SERIAL_NO
          Tag for requesting card and reader attributes
static int SCARD_ATTR_VENDOR_IFD_TYPE
          Tag for requesting card and reader attributes
static int SCARD_ATTR_VENDOR_IFD_VERSION
          Tag for requesting card and reader attributes
static int SCARD_ATTR_VENDOR_NAME
          Tag for requesting card and reader attributes
static int SCOPE_GLOBAL
          Scope is global, mapped on SCOPE_SYSTEM on Windows
static int SCOPE_SYSTEM
          Scope in system
static int SCOPE_TERMINAL
          Scope in terminal
static int SCOPE_USER
          Scope in user space
static int SHARE_DIRECT
          Raw mode only
static int SHARE_EXCLUSIVE
          Exclusive mode only
static int SHARE_SHARED
          Shared mode only
static int SPECIFIC
          PTS has been set
static int STATE_ATRMATCH
          ATR matches card
static int STATE_CHANGED
          State has changed
static int STATE_EMPTY
          Card removed
static int STATE_EXCLUSIVE
          Exclusive Mode
static int STATE_IGNORE
          Ignore this reader
static int STATE_INUSE
          Shared Mode
static int STATE_MUTE
          Unresponsive card
static int STATE_PRESENT
          Card inserted
static int STATE_UNAVAILABLE
          Status unavailable
static int STATE_UNAWARE
          App wants status
static int STATE_UNKNOWN
          Reader unknown
static int SUCCESS
          Note that PCSC Lite versions up to 0.8.2 return 1 instead of 0 on success and thus do not match JPCSC.
static int SWALLOWED
          Card not powered
static int UNKNOWN
          Unknown state
static int UNPOWER_CARD
          Power down on close
static int W_REMOVED_CARD
          Warning code
static int W_RESET_CARD
          Warning code
static int W_UNPOWERED_CARD
          Warning code
static int W_UNRESPONSIVE_CARD
          Warning code
static int W_UNSUPPORTED_CARD
          Warning code
 
Constructor Summary
PCSC()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pcscNativeLibName

public static final java.lang.String pcscNativeLibName
Name of the native library we depend on.

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Note that PCSC Lite versions up to 0.8.2 return 1 instead of 0 on success and thus do not match JPCSC.


SCOPE_USER

public static final int SCOPE_USER
Scope in user space


SCOPE_TERMINAL

public static final int SCOPE_TERMINAL
Scope in terminal


SCOPE_SYSTEM

public static final int SCOPE_SYSTEM
Scope in system


SCOPE_GLOBAL

public static final int SCOPE_GLOBAL
Scope is global, mapped on SCOPE_SYSTEM on Windows


PROTOCOL_T0

public static final int PROTOCOL_T0
T=0 active protocol.


PROTOCOL_T1

public static final int PROTOCOL_T1
T=1 active protocol.


PROTOCOL_RAW

public static final int PROTOCOL_RAW
Raw active protocol.


PROTOCOL_ANY

public static final int PROTOCOL_ANY
IFD determines protocol.


PROTOCOL_DEFAULT

public static final int PROTOCOL_DEFAULT
IFD determines protocol.


SHARE_EXCLUSIVE

public static final int SHARE_EXCLUSIVE
Exclusive mode only


SHARE_SHARED

public static final int SHARE_SHARED
Shared mode only


SHARE_DIRECT

public static final int SHARE_DIRECT
Raw mode only


LEAVE_CARD

public static final int LEAVE_CARD
Do nothing on close


RESET_CARD

public static final int RESET_CARD
Reset on close


UNPOWER_CARD

public static final int UNPOWER_CARD
Power down on close


EJECT_CARD

public static final int EJECT_CARD
Eject on close


UNKNOWN

public static final int UNKNOWN
Unknown state


ABSENT

public static final int ABSENT
Card is absent


PRESENT

public static final int PRESENT
Card is present


SWALLOWED

public static final int SWALLOWED
Card not powered


POWERED

public static final int POWERED
Card is powered


NEGOTIABLE

public static final int NEGOTIABLE
Ready for PTS


SPECIFIC

public static final int SPECIFIC
PTS has been set


STATE_UNAWARE

public static final int STATE_UNAWARE
App wants status


STATE_IGNORE

public static final int STATE_IGNORE
Ignore this reader


STATE_CHANGED

public static final int STATE_CHANGED
State has changed


STATE_UNKNOWN

public static final int STATE_UNKNOWN
Reader unknown


STATE_UNAVAILABLE

public static final int STATE_UNAVAILABLE
Status unavailable


STATE_EMPTY

public static final int STATE_EMPTY
Card removed


STATE_PRESENT

public static final int STATE_PRESENT
Card inserted


STATE_ATRMATCH

public static final int STATE_ATRMATCH
ATR matches card


STATE_EXCLUSIVE

public static final int STATE_EXCLUSIVE
Exclusive Mode


STATE_INUSE

public static final int STATE_INUSE
Shared Mode


STATE_MUTE

public static final int STATE_MUTE
Unresponsive card


E_CANCELLED

public static final int E_CANCELLED
Error code


E_CANT_DISPOSE

public static final int E_CANT_DISPOSE
Error code


E_INSUFFICIENT_BUFFER

public static final int E_INSUFFICIENT_BUFFER
Error code


E_INVALID_ATR

public static final int E_INVALID_ATR
Error code


E_INVALID_HANDLE

public static final int E_INVALID_HANDLE
Error code


E_INVALID_PARAMETER

public static final int E_INVALID_PARAMETER
Error code


E_INVALID_TARGET

public static final int E_INVALID_TARGET
Error code


E_INVALID_VALUE

public static final int E_INVALID_VALUE
Error code


E_NO_MEMORY

public static final int E_NO_MEMORY
Error code


F_COMM_ERROR

public static final int F_COMM_ERROR
Error code


F_INTERNAL_ERROR

public static final int F_INTERNAL_ERROR
Error code


F_UNKNOWN_ERROR

public static final int F_UNKNOWN_ERROR
Error code


F_WAITED_TOO_LONG

public static final int F_WAITED_TOO_LONG
Error code


E_UNKNOWN_READER

public static final int E_UNKNOWN_READER
Error code


E_TIMEOUT

public static final int E_TIMEOUT
Error code


E_SHARING_VIOLATION

public static final int E_SHARING_VIOLATION
Error code


E_NO_SMARTCARD

public static final int E_NO_SMARTCARD
Error code


E_UNKNOWN_CARD

public static final int E_UNKNOWN_CARD
Error code


E_PROTO_MISMATCH

public static final int E_PROTO_MISMATCH
Error code


E_NOT_READY

public static final int E_NOT_READY
Error code


E_SYSTEM_CANCELLED

public static final int E_SYSTEM_CANCELLED
Error code


E_NOT_TRANSACTED

public static final int E_NOT_TRANSACTED
Error code


E_READER_UNAVAILABLE

public static final int E_READER_UNAVAILABLE
Error code


W_UNSUPPORTED_CARD

public static final int W_UNSUPPORTED_CARD
Warning code


W_UNRESPONSIVE_CARD

public static final int W_UNRESPONSIVE_CARD
Warning code


W_UNPOWERED_CARD

public static final int W_UNPOWERED_CARD
Warning code


W_RESET_CARD

public static final int W_RESET_CARD
Warning code


W_REMOVED_CARD

public static final int W_REMOVED_CARD
Warning code


E_PCI_TOO_SMALL

public static final int E_PCI_TOO_SMALL
Error code


E_READER_UNSUPPORTED

public static final int E_READER_UNSUPPORTED
Error code


E_DUPLICATE_READER

public static final int E_DUPLICATE_READER
Error code


E_CARD_UNSUPPORTED

public static final int E_CARD_UNSUPPORTED
Error code


E_NO_SERVICE

public static final int E_NO_SERVICE
Error code


E_SERVICE_STOPPED

public static final int E_SERVICE_STOPPED
Error code


INFINITE

public static final int INFINITE
Infinite timeout.


SCARD_ATTR_VENDOR_NAME

public static final int SCARD_ATTR_VENDOR_NAME
Tag for requesting card and reader attributes


SCARD_ATTR_VENDOR_IFD_TYPE

public static final int SCARD_ATTR_VENDOR_IFD_TYPE
Tag for requesting card and reader attributes


SCARD_ATTR_VENDOR_IFD_VERSION

public static final int SCARD_ATTR_VENDOR_IFD_VERSION
Tag for requesting card and reader attributes


SCARD_ATTR_VENDOR_IFD_SERIAL_NO

public static final int SCARD_ATTR_VENDOR_IFD_SERIAL_NO
Tag for requesting card and reader attributes


SCARD_ATTR_CHANNEL_ID

public static final int SCARD_ATTR_CHANNEL_ID
Tag for requesting card and reader attributes


SCARD_ATTR_ASYNC_PROTOCOL_TYPES

public static final int SCARD_ATTR_ASYNC_PROTOCOL_TYPES
Tag for requesting card and reader attributes


SCARD_ATTR_DEFAULT_CLK

public static final int SCARD_ATTR_DEFAULT_CLK
Tag for requesting card and reader attributes


SCARD_ATTR_MAX_CLK

public static final int SCARD_ATTR_MAX_CLK
Tag for requesting card and reader attributes


SCARD_ATTR_DEFAULT_DATA_RATE

public static final int SCARD_ATTR_DEFAULT_DATA_RATE
Tag for requesting card and reader attributes


SCARD_ATTR_MAX_DATA_RATE

public static final int SCARD_ATTR_MAX_DATA_RATE
Tag for requesting card and reader attributes


SCARD_ATTR_MAX_IFSD

public static final int SCARD_ATTR_MAX_IFSD
Tag for requesting card and reader attributes


SCARD_ATTR_SYNC_PROTOCOL_TYPES

public static final int SCARD_ATTR_SYNC_PROTOCOL_TYPES
Tag for requesting card and reader attributes


SCARD_ATTR_POWER_MGMT_SUPPORT

public static final int SCARD_ATTR_POWER_MGMT_SUPPORT
Tag for requesting card and reader attributes


SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE

public static final int SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE
Tag for requesting card and reader attributes


SCARD_ATTR_USER_AUTH_INPUT_DEVICE

public static final int SCARD_ATTR_USER_AUTH_INPUT_DEVICE
Tag for requesting card and reader attributes


SCARD_ATTR_CHARACTERISTICS

public static final int SCARD_ATTR_CHARACTERISTICS
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_PROTOCOL_TYPE

public static final int SCARD_ATTR_CURRENT_PROTOCOL_TYPE
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_CLK

public static final int SCARD_ATTR_CURRENT_CLK
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_F

public static final int SCARD_ATTR_CURRENT_F
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_D

public static final int SCARD_ATTR_CURRENT_D
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_N

public static final int SCARD_ATTR_CURRENT_N
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_W

public static final int SCARD_ATTR_CURRENT_W
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_IFSC

public static final int SCARD_ATTR_CURRENT_IFSC
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_IFSD

public static final int SCARD_ATTR_CURRENT_IFSD
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_BWT

public static final int SCARD_ATTR_CURRENT_BWT
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_CWT

public static final int SCARD_ATTR_CURRENT_CWT
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_EBC_ENCODING

public static final int SCARD_ATTR_CURRENT_EBC_ENCODING
Tag for requesting card and reader attributes


SCARD_ATTR_EXTENDED_BWT

public static final int SCARD_ATTR_EXTENDED_BWT
Tag for requesting card and reader attributes


SCARD_ATTR_ICC_PRESENCE

public static final int SCARD_ATTR_ICC_PRESENCE
Tag for requesting card and reader attributes


SCARD_ATTR_ICC_INTERFACE_STATUS

public static final int SCARD_ATTR_ICC_INTERFACE_STATUS
Tag for requesting card and reader attributes


SCARD_ATTR_CURRENT_IO_STATE

public static final int SCARD_ATTR_CURRENT_IO_STATE
Tag for requesting card and reader attributes


SCARD_ATTR_ATR_STRING

public static final int SCARD_ATTR_ATR_STRING
Tag for requesting card and reader attributes


SCARD_ATTR_ICC_TYPE_PER_ATR

public static final int SCARD_ATTR_ICC_TYPE_PER_ATR
Tag for requesting card and reader attributes


SCARD_ATTR_ESC_RESET

public static final int SCARD_ATTR_ESC_RESET
Tag for requesting card and reader attributes


SCARD_ATTR_ESC_CANCEL

public static final int SCARD_ATTR_ESC_CANCEL
Tag for requesting card and reader attributes


SCARD_ATTR_ESC_AUTHREQUEST

public static final int SCARD_ATTR_ESC_AUTHREQUEST
Tag for requesting card and reader attributes


SCARD_ATTR_MAXINPUT

public static final int SCARD_ATTR_MAXINPUT
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_UNIT

public static final int SCARD_ATTR_DEVICE_UNIT
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_IN_USE

public static final int SCARD_ATTR_DEVICE_IN_USE
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_FRIENDLY_NAME_A

public static final int SCARD_ATTR_DEVICE_FRIENDLY_NAME_A
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_SYSTEM_NAME_A

public static final int SCARD_ATTR_DEVICE_SYSTEM_NAME_A
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_FRIENDLY_NAME_W

public static final int SCARD_ATTR_DEVICE_FRIENDLY_NAME_W
Tag for requesting card and reader attributes


SCARD_ATTR_DEVICE_SYSTEM_NAME_W

public static final int SCARD_ATTR_DEVICE_SYSTEM_NAME_W
Tag for requesting card and reader attributes


SCARD_ATTR_SUPRESS_T1_IFS_REQUEST

public static final int SCARD_ATTR_SUPRESS_T1_IFS_REQUEST
Tag for requesting card and reader attributes

Constructor Detail

PCSC

public PCSC()