W3cubDocs

/Symfony 2.7

Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver

class AuthenticationTrustResolver implements AuthenticationTrustResolverInterface

The default implementation of the authentication trust resolver.

Methods

__construct(string $anonymousClass, string $rememberMeClass)

Constructor

bool isAnonymous(TokenInterface $token = null)

Resolves whether the passed token implementation is authenticated anonymously.

bool isRememberMe(TokenInterface $token = null)

Resolves whether the passed token implementation is authenticated using remember-me capabilities.

bool isFullFledged(TokenInterface $token = null)

Resolves whether the passed token implementation is fully authenticated.

Details

public __construct(string $anonymousClass, string $rememberMeClass)

Constructor

Parameters

string $anonymousClass
string $rememberMeClass

public bool isAnonymous(TokenInterface $token = null)

Resolves whether the passed token implementation is authenticated anonymously.

If null is passed, the method must return false.

Parameters

TokenInterface $token

Return Value

bool

public bool isRememberMe(TokenInterface $token = null)

Resolves whether the passed token implementation is authenticated using remember-me capabilities.

Parameters

TokenInterface $token

Return Value

bool

public bool isFullFledged(TokenInterface $token = null)

Resolves whether the passed token implementation is fully authenticated.

Parameters

TokenInterface $token

Return Value

bool