34 lines
504 B
C++
34 lines
504 B
C++
#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
|
|
|