Class Apache

Summary

Fully Qualified Name: Laminas\Crypt\Password\Apache
Implements: PasswordInterface

Description

Apache password authentication

Methods

Name Description Defined By
__construct() Constructor Apache
create() Generate the hash of a password Apache
getAuthName() Get the AuthName (for digest authentication) Apache
getFormat() Get the format of the password Apache
getUserName() Get the username Apache
setAuthName() Set the AuthName (for digest authentication) Apache
setFormat() Set the format of the password Apache
setUserName() Set the username Apache
verify() Verify if a password is correct against a hash value Apache

Method Details

__construct()

Constructor

Parameter Name Type Description
$options array|\Traversable

Returns:

create()

Generate the hash of a password

Parameter Name Type Description
$password string

Returns: string

getAuthName()

Get the AuthName (for digest authentication)

Returns: string

getFormat()

Get the format of the password

Returns: string

getUserName()

Get the username

Returns: string

setAuthName()

Set the AuthName (for digest authentication)

Parameter Name Type Description
$name string

Returns: \Apache Provides a fluent interface

setFormat()

Set the format of the password

Parameter Name Type Description
$format string

Returns: \Apache Provides a fluent interface

setUserName()

Set the username

Parameter Name Type Description
$name string

Returns: \Apache Provides a fluent interface

verify()

Verify if a password is correct against a hash value

Parameter Name Type Description
$password string
$hash string

Returns: bool

Top