Object PKCS#11 C++ Wrapper
Public Member Functions | Protected Attributes | Friends | List of all members
objck::Session Class Reference

PKCS#11 Sessions
More...

#include <Session.h>

Inheritance diagram for objck::Session:
objck::Stateful

Public Member Functions

 Session ()
 
 Session (Session &&other)
 
virtual ~Session ()
 
Sessionoperator= (const Session &other)=delete
 
Sessionoperator= (Session &&other)
 
SessionInfo getSessionInfo ()
 
void getOperationState ()
 
void setOperationState ()
 
void closeSession ()
 
void initPin (std::string &pin)
 
void login (std::string &soPin)
 
CK_SESSION_HANDLE getSessionHandle ()
 
void logout ()
 
- Public Member Functions inherited from objck::Stateful
 Stateful (Stateful::state st=Stateful::DISABLED)
 
virtual ~Stateful () throw ()
 
Stateful::state getState ()
 
bool isEnabled ()
 
bool isDisabled ()
 

Protected Attributes

CK_SESSION_HANDLE _session
 
CK_FUNCTION_LIST_PTR _functionList
 
- Protected Attributes inherited from objck::Stateful
Stateful::state _currentState
 

Friends

class Cryptoki
 

Additional Inherited Members

- Protected Types inherited from objck::Stateful
enum  state { DISABLED = 0, ENABLED = 1 }
 
- Protected Member Functions inherited from objck::Stateful
void disable ()
 
void enable ()
 

Detailed Description

PKCS#11 Sessions

This class is a CK_SESSION_HANDLE wrapper, it holds the session handle, enumerated flags and all PKCS#11 session functions related to session. Session should be created through P11::openSession.

See also
pkcs11.h
CK_SESSION_HANDLE
Cryptoki.h
Author
Lucas Pandolfo Perin

Constructor & Destructor Documentation

objck::Session::Session ( )
inline
objck::Session::Session ( Session &&  other)
inline
virtual objck::Session::~Session ( )
inlinevirtual

Member Function Documentation

Session& objck::Session::operator= ( const Session other)
delete
Session& objck::Session::operator= ( Session &&  other)
inline

Friends And Related Function Documentation

friend class Cryptoki
friend

Member Data Documentation

CK_FUNCTION_LIST_PTR objck::Session::_functionList
protected
CK_SESSION_HANDLE objck::Session::_session
protected

The documentation for this class was generated from the following files: