\CryptoManana\CryptographicProtocolPasswordBasedAuthentication

Class PasswordBasedAuthentication - The password-based authentication protocol object.

Summary

Methods
Properties
Constants
setVerificationAlgorithm()
getVerificationAlgorithm()
identifyEntity()
__construct()
__destruct()
__clone()
authenticateEntity()
No public properties found
No constants found
No protected methods found
$verificationSource
N/A
No private methods found
No private properties found
N/A

Properties

Methods

setVerificationAlgorithm()

setVerificationAlgorithm(\CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|\CryptoManana\Core\Interfaces\MessageDigestion\SecureVerificationInterface  $hasher) : $this

Setter for the message digestion and verification service.

Parameters

\CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm|\CryptoManana\Core\Interfaces\MessageDigestion\SecureVerificationInterface $hasher

The message digestion verification service or null.

Returns

$this —

The container object.

identifyEntity()

identifyEntity(string  $correctIdentification, string  $suppliedIdentification) : boolean

Verify the identity of a user or a client entity.

Parameters

string $correctIdentification

The correct identification information.

string $suppliedIdentification

The supplied identification information.

Throws

\Exception

Validation errors.

Returns

boolean —

The identity verification result.

__destruct()

__destruct() 

Container destructor.

__clone()

__clone() 

Container cloning via deep copy.

authenticateEntity()

authenticateEntity(string  $correctPassphrase, string  $suppliedPassphrase) : boolean

Authenticate a user or a client entity.

Parameters

string $correctPassphrase

The correct passphrase information.

string $suppliedPassphrase

The supplied passphrase information.

Throws

\Exception

Validation errors.

Returns

boolean —

The identity authentication result.