PHP 클래스 Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices

저자: Johannes M. Schmitt ([email protected])
상속: implements Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface, implements Symfony\Component\Security\Http\Logout\LogoutHandlerInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$logger
$options

공개 메소드들

메소드 설명
__construct ( array $userProviders, string $key, string $providerKey, array $options = [], Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null ) Constructor
autoLogin ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface Implementation of RememberMeServicesInterface. Detects whether a remember-me cookie was set, decodes it, and hands it to subclasses for further processing.
getKey ( )
getRememberMeParameter ( ) : string Returns the parameter that is used for checking whether remember-me services have been requested.
loginFail ( Request $request ) Implementation for RememberMeServicesInterface. Deletes the cookie when an attempted authentication fails.
loginSuccess ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) Implementation for RememberMeServicesInterface. This is called when an authentication is successful.
logout ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) Implementation for LogoutHandlerInterface. Deletes the cookie.

보호된 메소드들

메소드 설명
cancelCookie ( Request $request ) Deletes the remember-me cookie
decodeCookie ( string $rawCookie ) : array Decodes the raw cookie value
encodeCookie ( array $cookieParts ) : string Encodes the cookie parts
getUserProvider ( $class )
isRememberMeRequested ( Request $request ) : boolean Checks whether remember-me capabilities where requested
onLoginFail ( Request $request )
onLoginSuccess ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) This is called after a user has been logged in successfully, and has requested remember-me capabilities. The implementation usually sets a cookie and possibly stores a persistent record of it.
processAutoLoginCookie ( array $cookieParts, Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface Subclasses should validate the cookie and do any additional processing that is required. This is called from autoLogin().

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( array $userProviders, string $key, string $providerKey, array $options = [], Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$userProviders array
$key string
$providerKey string
$options array
$logger Symfony\Component\HttpKernel\Log\LoggerInterface

autoLogin() 최종 공개 메소드

Implementation of RememberMeServicesInterface. Detects whether a remember-me cookie was set, decodes it, and hands it to subclasses for further processing.
final public autoLogin ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\Security\Core\Authentication\Token\TokenInterface

cancelCookie() 보호된 메소드

Deletes the remember-me cookie
protected cancelCookie ( Request $request )
$request Symfony\Component\HttpFoundation\Request

decodeCookie() 보호된 메소드

Decodes the raw cookie value
protected decodeCookie ( string $rawCookie ) : array
$rawCookie string
리턴 array

encodeCookie() 보호된 메소드

Encodes the cookie parts
protected encodeCookie ( array $cookieParts ) : string
$cookieParts array
리턴 string

getKey() 공개 메소드

public getKey ( )

getRememberMeParameter() 공개 메소드

Returns the parameter that is used for checking whether remember-me services have been requested.
public getRememberMeParameter ( ) : string
리턴 string

getUserProvider() 최종 보호된 메소드

final protected getUserProvider ( $class )

isRememberMeRequested() 보호된 메소드

Checks whether remember-me capabilities where requested
protected isRememberMeRequested ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
리턴 boolean

loginFail() 최종 공개 메소드

Implementation for RememberMeServicesInterface. Deletes the cookie when an attempted authentication fails.
final public loginFail ( Request $request )
$request Symfony\Component\HttpFoundation\Request

loginSuccess() 최종 공개 메소드

Implementation for RememberMeServicesInterface. This is called when an authentication is successful.
final public loginSuccess ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface The token that resulted in a successful authentication

logout() 공개 메소드

Implementation for LogoutHandlerInterface. Deletes the cookie.
public logout ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

onLoginFail() 보호된 메소드

protected onLoginFail ( Request $request )
$request Symfony\Component\HttpFoundation\Request

onLoginSuccess() 추상적인 보호된 메소드

This is called after a user has been logged in successfully, and has requested remember-me capabilities. The implementation usually sets a cookie and possibly stores a persistent record of it.
abstract protected onLoginSuccess ( Request $request, Response $response, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

processAutoLoginCookie() 추상적인 보호된 메소드

Subclasses should validate the cookie and do any additional processing that is required. This is called from autoLogin().
abstract protected processAutoLoginCookie ( array $cookieParts, Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$cookieParts array
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\Security\Core\Authentication\Token\TokenInterface

프로퍼티 상세

$logger 보호되어 있는 프로퍼티

protected $logger

$options 보호되어 있는 프로퍼티

protected $options