Session management functions
void objck::Cryptoki::closeAllSessions |
( |
unsigned int |
slot | ) |
|
Closes all sessions an aplicarion has with a token.
- Parameters
-
slot | Specifies the token slot. |
- Exceptions
-
void objck::Session::closeSession |
( |
| ) |
|
void objck::Session::getOperationState |
( |
| ) |
|
CK_SESSION_HANDLE objck::Session::getSessionHandle |
( |
| ) |
|
SessionInfo objck::Session::getSessionInfo |
( |
| ) |
|
void objck::Session::initPin |
( |
std::string & |
pin | ) |
|
Initializes the normal user's PIN.
void objck::Session::login |
( |
std::string & |
soPin | ) |
|
void objck::Session::logout |
( |
| ) |
|
Opens a connection between an application and a particular token or sets up an application callback for token insertion.
- Parameters
-
slot | Specifies the token slot.. |
flags | Flags to determine if conection is R/RW (SERIAL_SESSION must always be set to true). |
notify | Address of the notification callback function. |
appPtr | Application defined pointer to be passed to the notification callback. |
- Returns
- Session
- Exceptions
-
void objck::Session::setOperationState |
( |
| ) |
|