44 Credential(
const std::string& name,
const std::string& uri,
const std::string& username,
const std::string& password);
117 std::string m_username;
118 std::string m_password;
A model of a credential stored in a keyring.
Definition credential.h:35
void setUsername(const std::string &username)
Sets the username of the credential.
bool operator<(const Credential &compare) const
Compares Credential objects via < operator.
const std::string & getName() const
Gets the name of the credential.
bool operator>(const Credential &compare) const
Compares Credential objects via > operator.
void setPassword(const std::string &password)
Sets the password of the credential.
bool operator!=(const Credential &compare) const
Compares Credential objects via != operator.
Credential(const std::string &name, const std::string &uri, const std::string &username, const std::string &password)
Constructs a credential.
void setName(const std::string &name)
Sets the name of the credential.
const std::string & getUsername() const
Gets the username of the credential.
bool operator==(const Credential &compare) const
Compares Credential objects via == operator.
void setUri(const std::string &uri)
Sets the uri of the credential (can also be used as a comment for the Credential)
const std::string & getPassword() const
Gets the password of the credential.
friend std::ostream & operator<<(std::ostream &os, const Credential &credential)
Outputs the Credential object.
const std::string & getUri() const
Gets the uri of the credential (can also be used as a comment for the Credential)
Definition credential.h:30