PHP Class Pimcore\Tool\Authentication

Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Méthode Description
authenticateHttpBasic ( ) : User
authenticatePlaintext ( $username, $password ) : null | User
authenticateSession ( ) : User
authenticateToken ( $username, $token, boolean $adminRequired = false ) : null | User
generateToken ( $username, $passwordHash ) : string
getPasswordHash ( $username, $plainTextPassword ) : boolean | false | string
isValidUser ( $user ) : boolean
preparePlainTextPassword ( $username, $plainTextPassword ) : string
tokenDecrypt ( $passwordHash, $token ) : array
verifyPassword ( User $user, $password ) : boolean

Method Details

authenticateHttpBasic() public static méthode

public static authenticateHttpBasic ( ) : User
Résultat Pimcore\Model\User

authenticatePlaintext() public static méthode

public static authenticatePlaintext ( $username, $password ) : null | User
$username
$password
Résultat null | Pimcore\Model\User

authenticateSession() public static méthode

public static authenticateSession ( ) : User
Résultat Pimcore\Model\User

authenticateToken() public static méthode

public static authenticateToken ( $username, $token, boolean $adminRequired = false ) : null | User
$username
$token
$adminRequired boolean
Résultat null | Pimcore\Model\User

generateToken() public static méthode

public static generateToken ( $username, $passwordHash ) : string
$username
$passwordHash
Résultat string

getPasswordHash() public static méthode

public static getPasswordHash ( $username, $plainTextPassword ) : boolean | false | string
$username
$plainTextPassword
Résultat boolean | false | string

isValidUser() public static méthode

public static isValidUser ( $user ) : boolean
$user
Résultat boolean

preparePlainTextPassword() public static méthode

public static preparePlainTextPassword ( $username, $plainTextPassword ) : string
$username
$plainTextPassword
Résultat string

tokenDecrypt() public static méthode

public static tokenDecrypt ( $passwordHash, $token ) : array
$passwordHash
$token
Résultat array

verifyPassword() public static méthode

public static verifyPassword ( User $user, $password ) : boolean
$user Pimcore\Model\User
$password
Résultat boolean