\CryptoManana\Core\Traits\ContainersEntityAuthenticationViaTokenTrait

Trait EntityAuthenticationViaTokenTrait - Reusable implementation of `EntityAuthenticationInterface`.

Summary

Methods
Properties
Constants
authenticateEntity()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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.