#include <KDSoapAuthentication.h>
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.
- See also
- KDSoapClientInterface::setAuthentication()
KDSoapAuthentication::KDSoapAuthentication |
( |
| ) |
|
Constructs an empty authentication object.
Constructs a copy of other
.
KDSoapAuthentication::~KDSoapAuthentication |
( |
| ) |
|
void KDSoapAuthentication::setUser |
( |
const QString & |
user | ) |
|
Sets the user
used for authentication
QString KDSoapAuthentication::user |
( |
| ) |
const |
- Returns
- the user used for authentication
void KDSoapAuthentication::setPassword |
( |
const QString & |
password | ) |
|
Sets the password
used for authentication
QString KDSoapAuthentication::password |
( |
| ) |
const |
- Returns
- the password used for authentication
void KDSoapAuthentication::setUsePasswordDigest |
( |
const bool |
usePasswordDigest | ) |
|
Sets whether #PasswordDigest (default) or #PasswordText is used for authentication
bool KDSoapAuthentication::usePasswordDigest |
( |
| ) |
const |
- Returns
- whether #PasswordDigest is used for authentication
void KDSoapAuthentication::setUseWSUsernameToken |
( |
bool |
useWSUsernameToken | ) |
|
bool KDSoapAuthentication::useWSUsernameToken |
( |
| ) |
const |
- Since
- 1.8
- Returns
- whether WS-UsernameToken is used for authentication
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
- Since
- 1.8
QDateTime KDSoapAuthentication::overrideWSUsernameCreatedTime |
( |
| ) |
const |
- Since
- 1.8
- Returns
- the created time used during WS-UsernameToken authentication
void KDSoapAuthentication::setOverrideWSUsernameNonce |
( |
QByteArray |
overrideWSUsernameNonce | ) |
|
Sets the nonce used during WS-UsernameToken authentication This is useful during testing
- Since
- 1.8
QByteArray KDSoapAuthentication::overrideWSUsernameNonce |
( |
| ) |
const |
- Since
- 1.8
- Returns
- the created time used during WS-UsernameToken authentication
bool KDSoapAuthentication::hasAuth |
( |
| ) |
const |
- Returns
true
if authentication was defined, or false
if this object is only a default-constructed KDSoapAuthentication().
Assigns the contents of other
to this authenticator.
The documentation for this class was generated from the following files: