KD SOAP API Documentation 2.2
|
#include <KDSoapAuthentication.h>
Public Member Functions | |
KDSoapAuthentication () | |
KDSoapAuthentication (const KDSoapAuthentication &other) | |
~KDSoapAuthentication () | |
bool | hasAuth () const |
KDSoapAuthentication & | operator= (const KDSoapAuthentication &other) |
QDateTime | overrideWSUsernameCreatedTime () const |
QByteArray | overrideWSUsernameNonce () const |
QString | password () const |
void | setOverrideWSUsernameCreatedTime (QDateTime overrideWSUsernameCreatedTime) |
void | setOverrideWSUsernameNonce (QByteArray overrideWSUsernameNonce) |
void | setPassword (const QString &password) |
void | setUsePasswordDigest (const bool usePasswordDigest) |
void | setUser (const QString &user) |
void | setUseWSUsernameToken (bool useWSUsernameToken) |
bool | usePasswordDigest () const |
QString | user () const |
bool | useWSUsernameToken () const |
KDSoapAuthentication provides an authentication object. Currently it only supports authentication based on user/password, but its design makes it extensible to other forms of authentication.
Definition at line 30 of file KDSoapAuthentication.h.
KDSoapAuthentication::KDSoapAuthentication | ( | ) |
Constructs an empty authentication object.
Definition at line 33 of file KDSoapAuthentication.cpp.
KDSoapAuthentication::KDSoapAuthentication | ( | const KDSoapAuthentication & | other | ) |
Constructs a copy of other
.
Definition at line 39 of file KDSoapAuthentication.cpp.
KDSoapAuthentication::~KDSoapAuthentication | ( | ) |
Destructs the object
Definition at line 51 of file KDSoapAuthentication.cpp.
bool KDSoapAuthentication::hasAuth | ( | ) | const |
true
if authentication was defined, or false
if this object is only a default-constructed KDSoapAuthentication(). Definition at line 116 of file KDSoapAuthentication.cpp.
KDSoapAuthentication & KDSoapAuthentication::operator= | ( | const KDSoapAuthentication & | other | ) |
Assigns the contents of other
to this authenticator.
Definition at line 45 of file KDSoapAuthentication.cpp.
QDateTime KDSoapAuthentication::overrideWSUsernameCreatedTime | ( | ) | const |
Definition at line 106 of file KDSoapAuthentication.cpp.
Referenced by setOverrideWSUsernameCreatedTime().
QByteArray KDSoapAuthentication::overrideWSUsernameNonce | ( | ) | const |
Definition at line 111 of file KDSoapAuthentication.cpp.
Referenced by setOverrideWSUsernameNonce().
QString KDSoapAuthentication::password | ( | ) | const |
Definition at line 91 of file KDSoapAuthentication.cpp.
Referenced by setPassword().
void KDSoapAuthentication::setOverrideWSUsernameCreatedTime | ( | QDateTime | overrideWSUsernameCreatedTime | ) |
Sets the created time used during WS-UsernameToken authentication This is useful for devices with an incorrect time and during testing
Definition at line 76 of file KDSoapAuthentication.cpp.
References overrideWSUsernameCreatedTime().
void KDSoapAuthentication::setOverrideWSUsernameNonce | ( | QByteArray | overrideWSUsernameNonce | ) |
Sets the nonce used during WS-UsernameToken authentication This is useful during testing
Definition at line 81 of file KDSoapAuthentication.cpp.
References overrideWSUsernameNonce().
void KDSoapAuthentication::setPassword | ( | const QString & | password | ) |
Sets the password
used for authentication
Definition at line 61 of file KDSoapAuthentication.cpp.
References password().
void KDSoapAuthentication::setUsePasswordDigest | ( | const bool | usePasswordDigest | ) |
Sets whether PasswordDigest (default) or PasswordText is used for authentication
Definition at line 66 of file KDSoapAuthentication.cpp.
References usePasswordDigest().
void KDSoapAuthentication::setUser | ( | const QString & | user | ) |
Sets the user
used for authentication
Definition at line 56 of file KDSoapAuthentication.cpp.
References user().
void KDSoapAuthentication::setUseWSUsernameToken | ( | bool | useWSUsernameToken | ) |
Sets whether WS-UsernameToken is used for authentication. When set, the WS-UsernameToken headers are included in each request. See https://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0.pdf
Definition at line 71 of file KDSoapAuthentication.cpp.
References useWSUsernameToken().
bool KDSoapAuthentication::usePasswordDigest | ( | ) | const |
Definition at line 96 of file KDSoapAuthentication.cpp.
Referenced by setUsePasswordDigest().
QString KDSoapAuthentication::user | ( | ) | const |
Definition at line 86 of file KDSoapAuthentication.cpp.
Referenced by setUser().
bool KDSoapAuthentication::useWSUsernameToken | ( | ) | const |
Definition at line 101 of file KDSoapAuthentication.cpp.
Referenced by setUseWSUsernameToken().