Cutelyst  1.5.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Cutelyst::CredentialPassword Class Reference
Inheritance diagram for Cutelyst::CredentialPassword:
Inheritance graph
[legend]

Public Types

enum  Type { None, Clear, Hashed, SelfCheck }
 

Public Member Functions

 CredentialPassword (QObject *parent=nullptr)
 
AuthenticationUser authenticate (Context *c, AuthenticationRealm *realm, const ParamsMultiMap &authinfo) final
 
QByteArray hmac (QCryptographicHash::Algorithm method, QByteArray key, const QByteArray &message)
 
QString passwordField () const
 
QString passwordPostSalt () const
 
QString passwordPreSalt () const
 
Type passwordType () const
 
void setPasswordField (const QString &fieldName)
 
void setPasswordPostSalt (const QString &passwordPostSalt)
 
void setPasswordPreSalt (const QString &passwordPreSalt)
 
void setPasswordType (Type type)
 
- Public Member Functions inherited from Cutelyst::AuthenticationCredential
 AuthenticationCredential (QObject *parent=nullptr)
 

Static Public Member Functions

static QByteArray createPassword (const QByteArray &password, QCryptographicHash::Algorithm method, int iterations, int saltByteSize, int hashByteSize)
 
static QByteArray pbkdf2 (QCryptographicHash::Algorithm method, const QByteArray &password, const QByteArray &salt, int rounds, int keyLength)
 
static bool validatePassword (const QByteArray &password, const QByteArray &correctHash)
 

Protected Attributes

CredentialPasswordPrivate * d_ptr
 

Detailed Description

Definition at line 31 of file credentialpassword.h.