Symfony2 API
Class

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

Boolean isAnonymous(TokenInterface $token = null)

Resolves whether the passed token implementation is authenticated anonymously.

Boolean isRememberMe(TokenInterface $token = null)

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

Boolean isFullFledged(TokenInterface $token = null)

Resolves whether the passed token implementation is fully authenticated.

Details

at line 32
public __construct(string $anonymousClass, string $rememberMeClass)

Constructor

Parameters

string $anonymousClass
string $rememberMeClass

at line 41
public Boolean 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

Boolean

at line 53
public Boolean isRememberMe(TokenInterface $token = null)

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

Parameters

TokenInterface $token

Return Value

Boolean

at line 65
public Boolean isFullFledged(TokenInterface $token = null)

Resolves whether the passed token implementation is fully authenticated.

Parameters

TokenInterface $token

Return Value

Boolean