PHP 인터페이스 AppserverIo\Appserver\ServletEngine\Security\RealmInterface

파일 보기 프로젝트 열기: appserver-io/appserver 0 사용 예제들

공개 메소드들

메소드 설명
authenticate ( string $username, string $password ) : AppserverIo\Security\PrincipalInterface | null Tries to authenticate the user with the passed username and password.
authenticateByUsernameAndCallbackHandler ( string $username, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler ) : AppserverIo\Security\PrincipalInterface | null Tries to authenticate the user with the passed username and callback handler.
getConfiguration ( ) : AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface Return's the realm's configuration.
getExceptionStack ( ) : AppserverIo\Collections\ArrayList Return's the exception stack.
getName ( ) : string Return's the name of the realm.

메소드 상세

authenticate() 공개 메소드

Tries to authenticate the user with the passed username and password.
public authenticate ( string $username, string $password ) : AppserverIo\Security\PrincipalInterface | null
$username string The name of the user to authenticate
$password string The password used for authentication
리턴 AppserverIo\Security\PrincipalInterface | null The authenticated user principal

authenticateByUsernameAndCallbackHandler() 공개 메소드

Tries to authenticate the user with the passed username and callback handler.
public authenticateByUsernameAndCallbackHandler ( string $username, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler ) : AppserverIo\Security\PrincipalInterface | null
$username string The name of the user to authenticate
$callbackHandler AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface The callback handler used to load the credentials
리턴 AppserverIo\Security\PrincipalInterface | null The authenticated user principal

getConfiguration() 공개 메소드

Return's the realm's configuration.
public getConfiguration ( ) : AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface
리턴 AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface The realm's configuration

getExceptionStack() 공개 메소드

Return's the exception stack.
public getExceptionStack ( ) : AppserverIo\Collections\ArrayList
리턴 AppserverIo\Collections\ArrayList The exception stack

getName() 공개 메소드

Return's the name of the realm.
public getName ( ) : string
리턴 string The realm's name