![]() |
KVIrc 5.2.6
Developer APIs
|
This namespace implement some SASL authentication methods. More...
Functions | |
bool | externalMethod (const KviCString &szIn, KviCString &szOut) |
Create the auth message for EXTERNAL authentication. | |
bool | plainMethod (const KviCString &szIn, KviCString &szOut, const QByteArray &baNick, const QByteArray &baPass) |
Create the auth message for PLAIN authentication. | |
QStringList | supportedMethods () |
Returns a list of the supported SASL methods. | |
This namespace implement some SASL authentication methods.
Currently implementhed methods are PLAIN and EXTERNAL
KVILIB_API bool KviSASL::externalMethod | ( | const KviCString & | szIn, |
KviCString & | szOut ) |
Create the auth message for EXTERNAL authentication.
szIn | The server-provided token |
szOut | A KviCString that will be filled with the authentication message |
Referenced by KviIrcConnection::handleAuthenticate().
KVILIB_API bool KviSASL::plainMethod | ( | const KviCString & | szIn, |
KviCString & | szOut, | ||
const QByteArray & | baNick, | ||
const QByteArray & | baPass ) |
Create the auth message for PLAIN authentication.
szIn | The server-provided token |
szOut | A KviCString that will be filled with the authentication message |
baNick | The username |
baPass | The password |
References KviMemory::allocate(), KviCString::bufferToBase64(), and KviMemory::free().
Referenced by KviIrcConnection::handleAuthenticate().
KVILIB_API QStringList KviSASL::supportedMethods | ( | ) |
Returns a list of the supported SASL methods.
Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget().