You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
504 B
33 lines
504 B
#ifndef __SECOPGUARD_H__ |
|
#define __SECOPGUARD_H__ |
|
|
|
namespace act |
|
{ |
|
class IToken; |
|
class ITokenAuth; |
|
class ITokenPIN; |
|
} |
|
|
|
#include <actUtility.h> |
|
#include <actSCardLock.h> |
|
|
|
|
|
/* |
|
* Transaction guard and authenticator to a card |
|
*/ |
|
class SecOpGuard : public act::SCardLock |
|
{ |
|
public: |
|
SecOpGuard(act::IToken* token); |
|
~SecOpGuard(); |
|
|
|
bool Authenticate(act::ITokenPIN* token_pin, const act::Blob& auth_data); |
|
|
|
private: |
|
bool m_status; |
|
act::IToken* m_token; |
|
act::ITokenAuth* m_token_auth; |
|
}; |
|
|
|
#endif |
|
|
|
|