Dynalib Utils
SecurityToken.h
Go to the documentation of this file.
1 //
2 // Created by Ken Kopelson on 25/10/17.
3 //
4 
5 #ifndef SECURITYTOKEN_H
6 #define SECURITYTOKEN_H
7 
8 #include <cstdint>
9 #include "BitManip.h"
10 
11 #define ACTION_SET_SECURE_BIT (0x01 << 0)
12 #define ACTION_CLEAR_SECURE_BIT (0x01 << 1)
13 
26  uint32_t _permissions = 0xFFFFFFFF;
27 public:
28  SecurityToken() = default;
29  virtual ~SecurityToken() = default;
30  bool isValid();
31  bool isPermitted(uint32_t actions);
32 };
33 
34 
35 #endif //ROBOCHEFEMULATOR_SECURITYTOKEN_H
This class will store a digitally-signed token, where it contains identifying information that matche...
Definition: SecurityToken.h:25
virtual ~SecurityToken()=default
SecurityToken()=default
bool isPermitted(uint32_t actions)
Definition: SecurityToken.cpp:11
bool isValid()
Definition: SecurityToken.cpp:7