Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAuthenticatorPrivate Class Reference

#include <qauthenticator_p.h>

Collaboration diagram for QAuthenticatorPrivate:

Public Types

enum  Method {
  None , Basic , Negotiate , Ntlm ,
  DigestMd5
}
enum  Phase {
  Start , Phase1 , Phase2 , Done ,
  Invalid
}

Public Member Functions

 QAuthenticatorPrivate ()
void swap (QAuthenticatorPrivate &other) noexcept
 ~QAuthenticatorPrivate ()
QByteArray calculateResponse (QByteArrayView method, QByteArrayView path, QStringView host)
QByteArray digestMd5Response (QByteArrayView challenge, QByteArrayView method, QByteArrayView path)
void parseHttpResponse (const QHttpHeaders &headers, bool isProxy, QStringView host)
void updateCredentials ()

Static Public Member Functions

static QAuthenticatorPrivategetPrivate (QAuthenticator &auth)
static const QAuthenticatorPrivategetPrivate (const QAuthenticator &auth)
static QHash< QByteArray, QByteArrayparseDigestAuthenticationChallenge (QByteArrayView challenge)
static bool isMethodSupported (QByteArrayView method)

Public Attributes

QString user
QString extractedUser
QString password
QVariantHash options
Method method
QString realm
QByteArray challenge
bool hasFailed
Phase phase
QByteArray cnonce
int nonceCount
QString workstation
QString userDomain

Detailed Description

Definition at line 38 of file qauthenticator_p.h.

Member Enumeration Documentation

◆ Method

Enumerator
None 
Basic 
Negotiate 
Ntlm 
DigestMd5 

Definition at line 41 of file qauthenticator_p.h.

◆ Phase

Enumerator
Start 
Phase1 
Phase2 
Done 
Invalid 

Definition at line 83 of file qauthenticator_p.h.

Constructor & Destructor Documentation

◆ QAuthenticatorPrivate()

QAuthenticatorPrivate::QAuthenticatorPrivate ( )

Definition at line 391 of file qauthenticator.cpp.

◆ ~QAuthenticatorPrivate()

QAuthenticatorPrivate::~QAuthenticatorPrivate ( )
default

Member Function Documentation

◆ calculateResponse()

QByteArray QAuthenticatorPrivate::calculateResponse ( QByteArrayView method,
QByteArrayView path,
QStringView host )

Definition at line 556 of file qauthenticator.cpp.

◆ digestMd5Response()

QByteArray QAuthenticatorPrivate::digestMd5Response ( QByteArrayView challenge,
QByteArrayView method,
QByteArrayView path )

Definition at line 813 of file qauthenticator.cpp.

◆ getPrivate() [1/2]

const QAuthenticatorPrivate * QAuthenticatorPrivate::getPrivate ( const QAuthenticator & auth)
inlinestatic

Definition at line 103 of file qauthenticator_p.h.

◆ getPrivate() [2/2]

QAuthenticatorPrivate * QAuthenticatorPrivate::getPrivate ( QAuthenticator & auth)
inlinestatic

Definition at line 102 of file qauthenticator_p.h.

◆ isMethodSupported()

bool QAuthenticatorPrivate::isMethodSupported ( QByteArrayView method)
static

Definition at line 427 of file qauthenticator.cpp.

◆ parseDigestAuthenticationChallenge()

QHash< QByteArray, QByteArray > QAuthenticatorPrivate::parseDigestAuthenticationChallenge ( QByteArrayView challenge)
static

Definition at line 675 of file qauthenticator.cpp.

◆ parseHttpResponse()

void QAuthenticatorPrivate::parseHttpResponse ( const QHttpHeaders & headers,
bool isProxy,
QStringView host )

Definition at line 462 of file qauthenticator.cpp.

◆ swap()

void QAuthenticatorPrivate::swap ( QAuthenticatorPrivate & other)
inlinenoexcept

Definition at line 45 of file qauthenticator_p.h.

◆ updateCredentials()

void QAuthenticatorPrivate::updateCredentials ( )

Definition at line 404 of file qauthenticator.cpp.

Member Data Documentation

◆ challenge

QByteArray QAuthenticatorPrivate::challenge

Definition at line 75 of file qauthenticator_p.h.

◆ cnonce

QByteArray QAuthenticatorPrivate::cnonce

Definition at line 93 of file qauthenticator_p.h.

◆ extractedUser

QString QAuthenticatorPrivate::extractedUser

Definition at line 70 of file qauthenticator_p.h.

◆ hasFailed

bool QAuthenticatorPrivate::hasFailed

Definition at line 81 of file qauthenticator_p.h.

◆ method

Method QAuthenticatorPrivate::method

Definition at line 73 of file qauthenticator_p.h.

◆ nonceCount

int QAuthenticatorPrivate::nonceCount

Definition at line 94 of file qauthenticator_p.h.

◆ options

◆ password

QString QAuthenticatorPrivate::password

Definition at line 71 of file qauthenticator_p.h.

◆ phase

Phase QAuthenticatorPrivate::phase

Definition at line 90 of file qauthenticator_p.h.

◆ realm

QString QAuthenticatorPrivate::realm

Definition at line 74 of file qauthenticator_p.h.

◆ user

QString QAuthenticatorPrivate::user

Definition at line 69 of file qauthenticator_p.h.

◆ userDomain

QString QAuthenticatorPrivate::userDomain

Definition at line 98 of file qauthenticator_p.h.

◆ workstation

QString QAuthenticatorPrivate::workstation

Definition at line 97 of file qauthenticator_p.h.


The documentation for this class was generated from the following files: