Skip to content

PasswordProtectedUserIdentity

A UserIdentity that can be checked against a password, resolved by InMemoryUserProvider/PdoUserProvider/CallableUserProvider and consumed by FormLoginAuthenticator/HttpBasicAuthenticator via PasswordHasherInterface.

interface PasswordProtectedUserIdentity extends UserIdentity

ImplementsUserIdentity
Implemented byInMemoryUserIdentity
Since1.0.0
SourcePasswordProtectedUserIdentity.php
MethodDescription
getPasswordHash(): string

abstract public function getPasswordHash(): string

Returns string — The stored password hash, suitable for PasswordHasherInterface::verify().

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
getIdentifier()UserIdentityThe value UserProviderInterface::loadByIdentifier() was called with (e.g.
getRoles()UserIdentity