#include <RemoteAuthentication.h>
Should you wish to permit only a small number of pre-known keys to connect, then this version will authenticate against an array of AuthBlock's stored in PROGMEM / constant memory.
◆ ReadOnlyAuthenticationManager()
ReadOnlyAuthenticationManager::ReadOnlyAuthenticationManager |
( |
const AuthBlock * |
authBlocksPgm, |
|
|
int |
numberOfEntries, |
|
|
const char * |
pgmActualPin |
|
) |
| |
|
inline |
Initialise with an array of AuthBlock structures in program memory and the number of entries
- Parameters
-
authBlocksPgm | the authorisation blocks in const / program memory |
numberOfEntries | the number of blocks in the array. |
◆ addAdditionalUUIDKey()
bool ReadOnlyAuthenticationManager::addAdditionalUUIDKey |
( |
const char * |
, |
|
|
const char * |
|
|
) |
| |
|
inlineoverridevirtual |
◆ isAuthenticated()
bool ReadOnlyAuthenticationManager::isAuthenticated |
( |
const char * |
connectionName, |
|
|
const char * |
authResponse |
|
) |
| |
|
overridevirtual |
Checks the list of AuthBlocks to see if any contain our credentials.
- Parameters
-
connectionName | the name of the remote |
authResponse | the key provided in the join message |
Implements AuthenticationManager.
◆ doesPinMatch()
bool ReadOnlyAuthenticationManager::doesPinMatch |
( |
const char * |
pinAttempt | ) |
|
|
inlineoverridevirtual |
Checks if the parameter pinAttempt matches with the one stored within this authentication class.
- Parameters
-
pinAttempt | the pin to be checked |
- Returns
- true if there is a match, otherwise false
Implements AuthenticationManager.
The documentation for this class was generated from the following files: