|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
com.cryptware.jsle4442api.sle4442applet.SLE4442Applet
public class SLE4442Applet
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static int |
ERROR_INIT_ERROR
|
static int |
ERROR_INVALID_MEMORY_RANGE
|
static int |
ERROR_NO_READER_AVAILABLE
|
static int |
ERROR_NOT_CONNECTED
|
static int |
ERROR_NOT_INITIALIZED
|
static int |
ERROR_PIN_ATTEMPTS_LEFT
|
static int |
ERROR_PIN_VERIFY_FAILED
|
static int |
ERROR_PIN_VERIFY_NEEDED
|
static int |
ERROR_PIN_WRONG_LENGTH
|
static int |
ERROR_REMOVED_CARD
|
static int |
ERROR_SLE4442LIB_NOT_FOUND
|
static int |
ERROR_SMARTCARD_MANAGER
|
static int |
ERROR_UNEXPECTED
|
static int |
INCOMPATIBLE_READER
|
static int |
UNKNOWN_CARD
|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SLE4442Applet()
|
Method Summary | |
---|---|
int |
changeDefaultPIN(java.lang.String pin)
Cambia il PIN di default (da 0xFFFFFF al PIN dato in input) |
int |
changePIN(java.lang.String oldpin,
java.lang.String newpin)
Cambia il PIN |
int |
close()
Closes the native library SLE4442Lib |
int |
connect()
Apre una connessione con il lettore di smart card |
int |
disconnect()
Disconnette dal lettore |
java.lang.String |
getAppletInfo()
|
int |
getLastError()
Ritorna l'ultimo errore verificatosi |
void |
init()
Chiamato dal browser pre inizializzare l'applet |
boolean |
isReaderPresent()
Verifica se c'è almeno un lettore connesso |
boolean |
isSmartCardPresent()
Verifica la presenza della smart card nel lettore |
int |
open()
Initializes the applet and the underlying libraries |
java.lang.String |
readMainMemory(int offset,
int len)
Legge il numero seriale della smart card |
void |
stop()
Chiamato dal browser per fermare l'applet |
int |
updateMainMemory(java.lang.String data,
int offset,
int len)
Update the main momory |
int |
verifyPIN(java.lang.String pin)
Verifica il PIN |
Methods inherited from class java.applet.Applet |
---|
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ERROR_SLE4442LIB_NOT_FOUND
public static final int ERROR_SMARTCARD_MANAGER
public static final int ERROR_NO_READER_AVAILABLE
public static final int ERROR_NOT_INITIALIZED
public static final int ERROR_NOT_CONNECTED
public static final int ERROR_PIN_WRONG_LENGTH
public static final int ERROR_INIT_ERROR
public static final int INCOMPATIBLE_READER
public static final int UNKNOWN_CARD
public static final int ERROR_INVALID_MEMORY_RANGE
public static final int ERROR_PIN_VERIFY_NEEDED
public static final int ERROR_PIN_VERIFY_FAILED
public static final int ERROR_PIN_ATTEMPTS_LEFT
public static final int ERROR_REMOVED_CARD
public static final int ERROR_UNEXPECTED
Constructor Detail |
---|
public SLE4442Applet()
Method Detail |
---|
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
Applet.getAppletInfo()
public void stop()
stop
in class java.applet.Applet
Applet.stop()
public int close()
public void init()
init
in class java.applet.Applet
Applet.init()
public int open()
public boolean isReaderPresent()
public int connect()
public int disconnect()
public boolean isSmartCardPresent()
public java.lang.String readMainMemory(int offset, int len)
public int updateMainMemory(java.lang.String data, int offset, int len)
data
- to write
public int verifyPIN(java.lang.String pin)
pin
- il PIN composto da 3 byte
public int changeDefaultPIN(java.lang.String pin)
pin
- il nuovo PIN
public int changePIN(java.lang.String oldpin, java.lang.String newpin)
oldpin
- vecchio PINnewpin
- nuovo PIN
public int getLastError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |