Password changer interface This the only interface to be used by the system. All other interfaces are internal to the authentication objects.
More...
#include <passwordChanger.hpp>
Password changer interface This the only interface to be used by the system. All other interfaces are internal to the authentication objects.
- Note
- The password changer works only with complete messages. Sending a message in multiple parts will most likely result in an error. But that depends also on the backend.
Enumerator |
---|
MESSAGE_AVAILABLE |
an output message is available
|
AWAITING_MESSAGE |
waiting for an input message
|
PASSWORD_EXCHANGED |
the password has been successfuly changed
|
INVALID_MESSAGE |
the password change message is not valid, most likely the credentials are invalid
|
SYSTEM_FAILURE |
some other error occurred
|
virtual _Wolframe::AAAA::PasswordChanger::~PasswordChanger |
( |
| ) |
|
|
inlinevirtual |
virtual void _Wolframe::AAAA::PasswordChanger::dispose |
( |
| ) |
|
|
pure virtual |
Destroy the PasswordChanger
- Note
- In many cases this is a suicidal function (delete this), so you should be very careful how you use it. You should use this function instead of delete because not all instances are created with new.
virtual void _Wolframe::AAAA::PasswordChanger::messageIn |
( |
const std::string & |
message | ) |
|
|
pure virtual |
The input message
- Parameters
-
[in] | message | the input message |
virtual std::string _Wolframe::AAAA::PasswordChanger::messageOut |
( |
| ) |
|
|
pure virtual |
The output message
- Returns
- the output message
virtual std::string _Wolframe::AAAA::PasswordChanger::password |
( |
| ) |
|
|
pure virtual |
The new password
- Returns
- the new password if it exists or an empty string otherwise
- Note
- The new password is valid only if the changer is in the PASSWORD_EXCHANGED state. The function may even throw if called when the changed is in another state.
virtual Status _Wolframe::AAAA::PasswordChanger::status |
( |
| ) |
const |
|
pure virtual |
The current status of the password changer.
static const char* _Wolframe::AAAA::PasswordChanger::statusName |
( |
Status |
i | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: