public class CkiSOSession
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CkiSOSession(CkiSlot ckiSlot,
java.lang.String pinSO)
Creates a
CkiSession on the slot using the SO pin. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current connection.
|
void |
finalize() |
CkiSlot |
getCkiSlot()
Returns the slot corresponding to this session.
|
static CkiSOSession |
getInstance(CkiSlot ckiSlot,
java.lang.String pinSO)
Creates a new instance of CkiSession on the specified slot.
|
void |
initPin(java.lang.String pin)
Sets the USER password.
|
boolean |
isClosed()
Says if the session is still opened (false) or closed (true).
|
void |
login(java.lang.String pinSO)
Performs a login procedure on the current token..
|
void |
logout()
Performs a logout from the current token.
|
void |
setPin(java.lang.String oldPin,
java.lang.String pin)
Changes the SO pin with the new password.
|
protected CkiSOSession(CkiSlot ckiSlot, java.lang.String pinSO) throws CryptokiException
CkiSession on the slot using the SO pin.ckiSlot - The slot where the session will be opened.pinSO - The SO pinCryptokiExceptionpublic static CkiSOSession getInstance(CkiSlot ckiSlot, java.lang.String pinSO) throws CryptokiException
ckiSlot - The CkiSlot object representing the slot where the session will be opened.CryptokiExceptionpublic void close()
throws CryptokiException
CryptokiExceptionpublic void login(java.lang.String pinSO)
throws CryptokiException
CryptokiExceptionpublic void logout()
throws CryptokiException
CryptokiExceptionpublic boolean isClosed()
public CkiSlot getCkiSlot()
public void finalize()
finalize in class java.lang.Objectpublic void initPin(java.lang.String pin)
throws CryptokiException
pin - The new USER password.CryptokiExceptionpublic void setPin(java.lang.String oldPin,
java.lang.String pin)
throws CryptokiException
oldPin - The old passwordpin - The new passwordCryptokiException