libcryptosec
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SmartcardModuleException Class Reference

#include <SmartcardModuleException.h>

Inheritance diagram for SmartcardModuleException:
LibCryptoSecException

Public Types

enum  ErrorCode {
  UNKNOWN = 1, ENUMERATING_CERTIFICATES = 2, ENUMERATING_PRIVATE_KEYS = 3, DECRYPTING_DATA = 4,
  SMARTCARD_NOT_AVAILABLE = 5, SMARTCARD_READER_NOT_AVAILABLE = 6, INVALID_PIN = 0x000000A0, INVALID_PKCS11_MODULE = 8,
  BLOCKED_PIN = 0x000000A4, ID_NOT_FOUND = 9
}
 

Public Member Functions

 SmartcardModuleException (std::string where)
 
 SmartcardModuleException (SmartcardModuleException::ErrorCode errorCode, std::string where)
 
 SmartcardModuleException (SmartcardModuleException::ErrorCode errorCode, std::string where, bool opensslDetails)
 
virtual ~SmartcardModuleException () throw ()
 
virtual std::string getMessage () const
 
virtual std::string toString () const
 
virtual SmartcardModuleException::ErrorCode getErrorCode ()
 
- Public Member Functions inherited from LibCryptoSecException
virtual ~LibCryptoSecException () throw ()
 
virtual const char * what () const throw ()
 
virtual const std::string getDetails () const throw ()
 

Static Public Member Functions

static std::string errorCode2Message (SmartcardModuleException::ErrorCode errorCode)
 

Protected Attributes

SmartcardModuleException::ErrorCode errorCode
 
- Protected Attributes inherited from LibCryptoSecException
std::string where
 
std::string details
 

Member Enumeration Documentation

◆ ErrorCode

Enumerator
UNKNOWN 
ENUMERATING_CERTIFICATES 
ENUMERATING_PRIVATE_KEYS 
DECRYPTING_DATA 
SMARTCARD_NOT_AVAILABLE 
SMARTCARD_READER_NOT_AVAILABLE 
INVALID_PIN 
INVALID_PKCS11_MODULE 
BLOCKED_PIN 
ID_NOT_FOUND 

Constructor & Destructor Documentation

◆ SmartcardModuleException() [1/3]

SmartcardModuleException::SmartcardModuleException ( std::string  where)
inline

◆ SmartcardModuleException() [2/3]

SmartcardModuleException::SmartcardModuleException ( SmartcardModuleException::ErrorCode  errorCode,
std::string  where 
)
inline

◆ SmartcardModuleException() [3/3]

SmartcardModuleException::SmartcardModuleException ( SmartcardModuleException::ErrorCode  errorCode,
std::string  where,
bool  opensslDetails 
)
inline

◆ ~SmartcardModuleException()

virtual SmartcardModuleException::~SmartcardModuleException ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ errorCode2Message()

static std::string SmartcardModuleException::errorCode2Message ( SmartcardModuleException::ErrorCode  errorCode)
inlinestatic

◆ getErrorCode()

virtual SmartcardModuleException::ErrorCode SmartcardModuleException::getErrorCode ( )
inlinevirtual

◆ getMessage()

virtual std::string SmartcardModuleException::getMessage ( ) const
inlinevirtual

Implements LibCryptoSecException.

◆ toString()

virtual std::string SmartcardModuleException::toString ( ) const
inlinevirtual

Implements LibCryptoSecException.

Member Data Documentation

◆ errorCode

SmartcardModuleException::ErrorCode SmartcardModuleException::errorCode
protected

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