Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed uniqueCPUID
Fork of bcsdk by
Diff: MockHsm.h
- Revision:
- 8:f2a567ee3a46
- Child:
- 10:aabd720e632c
diff -r 04744a9ce2b9 -r f2a567ee3a46 MockHsm.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MockHsm.h Thu Sep 21 02:09:04 2017 +0000 @@ -0,0 +1,36 @@ +/*********************************************************************** + * Module: MockHsm.h + * Author: Administrator + * Modified: 2017Äê8ÔÂ31ÈÕ 16:29:48 + * Purpose: Declaration of the class MockHsm + * Comment: ÓÉÁ´ºËÌṩµÄÄ£ÄâHSMÀ´´¦Àí¿ª·¢ÖеĹؼü²ÄÁÏ¡£ + ***********************************************************************/ + +#if !defined(__Account_MockHsm_h) +#define __Account_MockHsm_h + +#include "Client.h" +#include "MbedJSONValue.h" + +using namespace std; + +class MockHsm +{ +public: + MockHsm(); + ~MockHsm(); + static Client getSignerClient(void); + string getAlias(); + void setAlias(string newAlias); + + string createKey(); + string listKeys(); + +protected: +private: + string alias; + string client_token; + Client client; +}; + +#endif