Interface AuthStrategyInterface

Interface AuthStrategyInterface

Direct known implementers

Md5Strategy, PasswordHashStrategy

Methods summary

public verify( StringType $password, NonEmptyStringType $hash, AuthStrategyCollection $authStrategyCollection = null ) : boolean

Verifies a given password by its stored hash from the current hashing algorithm.

public getHash( StringType $password ) : string

Generates a hash by given password string.

public getRehashedPassword( StringType $password, NonEmptyStringType $hash, AuthStrategyCollection $authStrategyCollection = null ) : string

Returns a rehashed password hash if it does not match the currently used hashing algorithm.