PHP 클래스 AppserverIo\Appserver\ServletEngine\Authenticator\BasicAuthenticator

저자: Johann Zelger ([email protected])
저자: Bernhard Wick ([email protected])
저자: Tim Wagner ([email protected])
상속: extends AbstractAuthenticator
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$password string The password to authenticate the user with.

공개 메소드들

메소드 설명
authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean Try to authenticate the user making this request, based on the specified login configuration.
getAuthenticateHeader ( ) : string Returns the authentication header for response to set
getPassword ( ) : string Returns the parsed password

메소드 상세

authenticate() 공개 메소드

Return TRUE if any specified constraint has been satisfied, or FALSE if we have created a response challenge already.
public authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The servlet request instance
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance
리턴 boolean TRUE if authentication has already been processed on a request before, else FALSE

getAuthenticateHeader() 공개 메소드

Returns the authentication header for response to set
public getAuthenticateHeader ( ) : string
리턴 string

getPassword() 공개 메소드

Returns the parsed password
public getPassword ( ) : string
리턴 string

프로퍼티 상세

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

The password to authenticate the user with.
protected string $password
리턴 string