Workspace 6.21.5
Public Member Functions | List of all members
BACredentials Class Reference

#include <Workspace/Authentication/Basic/bacredentials.h>

Inheritance diagram for BACredentials:
[legend]

Public Member Functions

 BACredentials ()
 
 BACredentials (const QString &)
 
 ~BACredentials () override
 
QString getDisplayString () const override
 
const QString & getPassword () const
 
const QString & getUserName () const
 
bool operator== (const BACredentials &) const
 
void setPassword (const QString &)
 
void setUserName (const QString &)
 
QString toString () const override
 
- Public Member Functions inherited from Credentials
 Credentials ()
 
 Credentials (const QString &)
 
virtual ~Credentials ()
 
virtual QString getDisplayString () const =0
 
virtual QString toString () const
 

Detailed Description

Credentials specific to the basic authentication method.

Constructor & Destructor Documentation

◆ BACredentials() [1/2]

BACredentials ( )
default

◆ BACredentials() [2/2]

BACredentials ( const QString &  credentials)

◆ ~BACredentials()

~BACredentials ( )
overridedefault

Member Function Documentation

◆ getDisplayString()

QString getDisplayString ( ) const
overridevirtual

Returns a human-readable description of the credentials for display in a user interface.

Implements Credentials.

◆ getPassword()

const QString & getPassword ( ) const

Gets the password.

Returns
The password.

◆ getUserName()

const QString & getUserName ( ) const

Gets the user name.

Returns
The user name.

◆ operator==()

bool operator== ( const BACredentials rhs) const

Overridden equality operator.

Returns
Returns True if the rhs is equivalent to this instance.

◆ setPassword()

void setPassword ( const QString &  password)

Sets the password.

Parameters
passwordThe password.

◆ setUserName()

void setUserName ( const QString &  userName)

Sets the user name.

Parameters
userNameThe user name.

◆ toString()

QString toString ( ) const
overridevirtual

Returns a string version of the credentials.

Returns
The credentials in string form.

Reimplemented from Credentials.