This is the external interface of authentication when using the menu library. It provides the support for checking if a connection is authenticated and also for adding new keys. There are two implementations of it so far, and more may follow so always try and use the interface rather than a given impl.
virtual bool AuthenticationManager::addAdditionalUUIDKey |
( |
const char * |
connectionName, |
|
|
const char * |
uuid |
|
) |
| |
|
pure virtual |
Adds an additional name, key mapping to the authentication manager, if there is space left in internal storage. If there is not enough space, it will return false and you need to reset the storage to proceed, as it's probably full.
- Parameters
-
connectionName | the name of the remote |
uuid | the key of the API / UI |
- Returns
- true if successful otherwise false.
Implemented in EepromAuthenticatorManager, ReadOnlyAuthenticationManager, and NoAuthenticationManager.