PasswordProtectedUserIdentity
A UserIdentity that can be checked against a password, resolved by InMemoryUserProvider/PdoUserProvider/CallableUserProvider and consumed by FormLoginAuthenticator/HttpBasicAuthenticator via PasswordHasherInterface.
Synopsis
Section titled “Synopsis”interface PasswordProtectedUserIdentity extends UserIdentity
| Implements | UserIdentity |
| Implemented by | InMemoryUserIdentity |
| Since | 1.0.0 |
| Source | PasswordProtectedUserIdentity.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
getPasswordHash(): string |
getPasswordHash()
Section titled “getPasswordHash()”abstract public function getPasswordHash(): string
Returns string — The stored password hash, suitable for PasswordHasherInterface::verify().
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
getIdentifier() | UserIdentity | The value UserProviderInterface::loadByIdentifier() was called with (e.g. |
getRoles() | UserIdentity |