abstract class AbstractProvider implements AuthenticationProviderInterface (View source)

An abstract authentication provider.

Properties

protected string $name
protected array $options

Methods

create(string $name, array $options)

Factory method

__construct(string $name, array $options = [])

Protected constructor, see create method

bool
canAuthenticate(TokenInterface $authenticationToken)

Returns true if the given token can be authenticated by this provider

Details

static AuthenticationProviderInterface create(string $name, array $options)

Factory method

Parameters

string $name
array $options

Return Value

AuthenticationProviderInterface

protected __construct(string $name, array $options = [])

Protected constructor, see create method

Parameters

string $name

The name of this authentication provider

array $options

Additional configuration options

See also

create

bool canAuthenticate(TokenInterface $authenticationToken)

Returns true if the given token can be authenticated by this provider

Parameters

TokenInterface $authenticationToken

The token that should be authenticated

Return Value

bool

true if the given token class can be authenticated by this provider