Digital Authentication Framework
6.0.1.37
|
Co-ordinates calls required for enrollment, authentication and passphrase change. More...
#include <authglue.h>
Public Member Functions | |
virtual | ~DAAuthProtocol () |
Virtual destructor. More... | |
virtual DAError & | getLastError ()=0 |
Retrieve the current error information for this protocol. More... | |
virtual bool | requiresExistingPassphrase () const =0 |
Returns true if this protocol requires input of an existing user passphrase. More... | |
virtual bool | inputExistingPassphrase (const std::string &string)=0 |
Inputs an existing passphrase. More... | |
virtual bool | requiresNewPassphrase () const =0 |
Returns true if this protocol requires input of a fresh passphrase. More... | |
virtual bool | inputNewPassphrase (const std::string &string)=0 |
Inputs a fresh pasphrase. More... | |
virtual bool | finished () const =0 |
Returns true if this protocol instance completed successfully. More... | |
virtual bool | getSecret (DAData &out)=0 |
Extracts the resulting authentication secret. More... | |
virtual bool | getNewSecret (DAData &out)=0 |
Extracts the new authentication secret, as a result of a enrollment or passphrase change protocol. More... | |
Co-ordinates calls required for enrollment, authentication and passphrase change.
The 'authglue' library provides a variety of implementations of this (abstract) class. See authglue.h documentation for an overview.
Implementations have their own error state, accessible via getLastError. Implementations with an error set are not recoverable, and finished() will never return true. To retry, make another instance using the original function.
|
virtual |
Virtual destructor.
|
pure virtual |
Returns true if this protocol instance completed successfully.
|
pure virtual |
Retrieve the current error information for this protocol.
|
pure virtual |
Extracts the new authentication secret, as a result of a enrollment or passphrase change protocol.
For other protocols, this returns false.
Valid to call only if finished()
just returned true.
|
pure virtual |
Extracts the resulting authentication secret.
This should is passed to the GD library and is used to protect the underlying container keys.
Valid to call only if finished()
just returned true.
|
pure virtual |
Inputs an existing passphrase.
Valid to call only if requiresExistingPassphrase()
just returned true.
|
pure virtual |
Inputs a fresh pasphrase.
Valid to call only if requiresNewPassphrase()
just returned true.
|
pure virtual |
Returns true if this protocol requires input of an existing user passphrase.
See DA_AUTH_PUBLIC in daf_auth_identify.h for more information.
|
pure virtual |
Returns true if this protocol requires input of a fresh passphrase.
See DA_AUTH_PUBLIC in daf_auth_identify.h for more information.