virtual int close(closeChannelCallback callback, void *userParam) = 0;
virtual int transmit(const ByteArray &command, transmitCallback callback, void *userData) = 0;
- virtual void closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &) = 0;
+ virtual void closeSync() = 0;
- virtual int transmitSync(const ByteArray &command, ByteArray &result)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual int transmitSync(const ByteArray &command, ByteArray &result) = 0;
};
/* LCOV_EXCL_STOP */
{
public :
static void throwError(int errorCode)
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &)
{
switch (errorCode)
{
inline SEServiceHelper *getSEService() const { return seService; }
inline bool isSecureElementPresent() const { return present; }
- virtual void closeSessions()
- throw(ErrorIO &, ErrorIllegalState &) = 0;
+ virtual void closeSessions() = 0;
virtual int openSession(openSessionCallback callback, void *userData) = 0;
- virtual SessionHelper *openSessionSync()
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &)= 0;
+ virtual SessionHelper *openSessionSync() = 0;
};
/* LCOV_EXCL_STOP */
ReaderHelper *getReader() const throw() { return reader; }
bool isClosed() const throw() { return closed; }
- virtual void closeChannels()
- throw(ErrorIO &, ErrorIllegalState &) = 0;
+ virtual void closeChannels() = 0;
virtual int getATR(getATRCallback callback, void *userData) = 0;
virtual int close(closeSessionCallback callback, void *userData) = 0;
virtual int openLogicalChannel(const ByteArray &aid, openChannelCallback callback, void *userData) = 0;
virtual int openLogicalChannel(const unsigned char *aid, unsigned int length, openChannelCallback callback, void *userData) = 0;
- virtual const ByteArray getATRSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &) = 0;
+ virtual const ByteArray getATRSync() = 0;
- virtual void closeSync()
- throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
- ErrorIllegalState &, ErrorIllegalParameter &) = 0;
+ virtual void closeSync() = 0;
- virtual Channel *openBasicChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openBasicChannelSync(const ByteArray &aid) = 0;
- virtual Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length) = 0;
- virtual Channel *openLogicalChannelSync(const ByteArray &aid)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openLogicalChannelSync(const ByteArray &aid) = 0;
- virtual Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length) = 0;
- virtual Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2) = 0;
- virtual Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2) = 0;
- virtual Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2) = 0;
- virtual Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
- ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ virtual Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2) = 0;
};
/* LCOV_EXCL_STOP */
}
void ServerChannel::closeSync()
- throw(ErrorIO &, ErrorIllegalState &)
{
ByteArray command, result;
APDUHelper apdu;
}
int ServerChannel::transmitSync(const ByteArray &command, ByteArray &result)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
int ret = -1;
APDUCommand helper;
}
void ServerReader::closeSessions()
- throw(ErrorIO &, ErrorIllegalState &)
{
size_t i;
}
ServerSession *ServerReader::openSessionSync()
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
vector<ByteArray> temp;
}
ServerSession *ServerReader::openSessionSync(const vector<ByteArray> &certHashes, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ServerSession *session = NULL;
}
unsigned int ServerResource::createChannel(const char *name, unsigned int handle, unsigned int sessionID, int channelType, ByteArray aid)
- throw(ExceptionBase &)
{
unsigned int result = -1;
ServiceInstance *service = NULL;
unsigned int ServerResource::_createChannel(Terminal *terminal,
ServiceInstance *service, int channelType,
unsigned int sessionID, const ByteArray &aid)
- throw(ExceptionBase &)
{
unsigned int result = IntegerHandle::INVALID_HANDLE;
int channelNum = 0;
}
const ByteArray ServerSession::getATRSync()
- throw(ErrorIO &, ErrorIllegalState &)
{
/* call get atr to terminal */
if (atr.isEmpty()) {
}
void ServerSession::closeSync()
- throw(ErrorIO &, ErrorIllegalState &)
{
if (isClosed() == false)
{
}
void ServerSession::closeChannels()
- throw(ErrorIO &, ErrorIllegalState &)
{
size_t i;
}
Channel *ServerSession::openBasicChannelSync(const ByteArray &aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
return openBasicChannelSync(aid, (void *)NULL);
}
Channel *ServerSession::openBasicChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
return openBasicChannelSync(aid, (void *)NULL);
}
Channel *ServerSession::openBasicChannelSync(const ByteArray &aid, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ServerChannel *channel = NULL;
#if 0
}
Channel *ServerSession::openBasicChannelSync(const unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
unsigned char P2 = 0x00;
ByteArray temp(aid, length);
}
Channel *ServerSession::openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *ServerSession::openBasicChannelSync(const unsigned char *aid, unsigned int length, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *ServerSession::openLogicalChannelSync(const ByteArray &aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
void* caller = NULL;
return openLogicalChannelSync(aid, caller);
}
Channel *ServerSession::openLogicalChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
void* caller = NULL;
return openLogicalChannelSync(aid, caller);
}
Channel *ServerSession::openLogicalChannelSync(const ByteArray &aid, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ServerChannel *channel = NULL;
#if 0
}
Channel *ServerSession::openLogicalChannelSync(const unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
unsigned char P2 = 0x00;
ByteArray temp(aid, length);
}
Channel *ServerSession::openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
}
Channel *ServerSession::openLogicalChannelSync(const unsigned char *aid, unsigned int length, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
ByteArray temp(aid, length);
void unsetPrivilegeMode() { this->privilege = false; }
protected:
- void closeSync()
- throw(ErrorIO &, ErrorIllegalState &);
- int transmitSync(const ByteArray &command, ByteArray &result)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ void closeSync();
+ int transmitSync(const ByteArray &command, ByteArray &result);
public:
~ServerChannel();
int openSession(void *caller, openSessionCallback callback, void *userData) { return -1; }
public:
- void closeSessions()
- throw(ErrorIO &, ErrorIllegalState &);
+ void closeSessions();
- ServerSession *openSessionSync()
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- ServerSession *openSessionSync(const vector<ByteArray> &certHashes, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ ServerSession *openSessionSync();
+ ServerSession *openSessionSync(const vector<ByteArray> &certHashes, void *caller);
friend class ServerSEService;
};
int _openLogicalChannel(Terminal *terminal);
int _closeLogicalChannel(Terminal *terminal, int channelNum);
bool _isAuthorizedAccess(ServerChannel *channel, const ByteArray &aid, const vector<ByteArray> &hashes);
- unsigned int _createChannel(Terminal *terminal, ServiceInstance *service, int channelType, unsigned int sessionID, const ByteArray &aid)
- throw(ExceptionBase &);
+ unsigned int _createChannel(Terminal *terminal, ServiceInstance *service, int channelType, unsigned int sessionID, const ByteArray &aid);
public:
/* static member */
bool isValidChannelHandle(const char *name, unsigned int handle, unsigned int channelID);
unsigned int createChannel(const char *name, unsigned int handle,
- unsigned int sessionID, int channelType, ByteArray aid)
- throw(ExceptionBase &);
+ unsigned int sessionID, int channelType, ByteArray aid);
Channel *getChannel(const char *name, unsigned int handle, unsigned int channelID);
void removeChannel(const char *name, unsigned int handle, unsigned int channelID);
void addAccessControlList(Terminal *terminal, AccessControlList *acl);
public:
~ServerSession();
- const ByteArray getATRSync()
- throw(ErrorIO &, ErrorIllegalState &);
- void closeSync()
- throw(ErrorIO &, ErrorIllegalState &);
-
- void closeChannels()
- throw(ErrorIO &, ErrorIllegalState &);
-
- Channel *openBasicChannelSync(const ByteArray &aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openBasicChannelSync(const ByteArray &aid, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
-
- Channel *openLogicalChannelSync(const ByteArray &aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openLogicalChannelSync(const ByteArray &aid, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
- Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, void *caller)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ const ByteArray getATRSync();
+ void closeSync();
+
+ void closeChannels();
+
+ Channel *openBasicChannelSync(const ByteArray &aid);
+ Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length);
+ Channel *openBasicChannelSync(const ByteArray &aid, unsigned char P2);
+ Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2);
+ Channel *openBasicChannelSync(const ByteArray &aid, void *caller);
+ Channel *openBasicChannelSync(const unsigned char *aid, unsigned int length, void *caller);
+
+ Channel *openLogicalChannelSync(const ByteArray &aid);
+ Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length);
+ Channel *openLogicalChannelSync(const ByteArray &aid, unsigned char P2);
+ Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, unsigned char P2);
+ Channel *openLogicalChannelSync(const ByteArray &aid, void *caller);
+ Channel *openLogicalChannelSync(const unsigned char *aid, unsigned int length, void *caller);
friend class ServerReader;
friend class ServerResource;