#include <sbuild-auth-message.h>
Public Types | |
enum | MessageType { MESSAGE_PROMPT_NOECHO = PAM_PROMPT_ECHO_OFF, MESSAGE_PROMPT_ECHO = PAM_PROMPT_ECHO_ON, MESSAGE_ERROR = PAM_ERROR_MSG, MESSAGE_INFO = PAM_TEXT_INFO } |
Message type. More... | |
Public Member Functions | |
AuthMessage (MessageType type, const std::string &message) | |
The constructor. | |
virtual | ~AuthMessage () |
The destructor. | |
Public Attributes | |
MessageType | type |
The type of message. | |
std::string | message |
The message to display. | |
std::string | response |
The user's response (if any). |
When Auth needs to interact with the user, it does this by sending a list of AuthMessage objects to an AuthConv conversation object. These messages tell the conversation object how to display the message to the user, and if necessary, whether or not to ask the user for some input. They also store the user's input, if required.
|
Message type.
|
|
The constructor.
|