PHP 클래스 AppserverIo\Appserver\ServletEngine\Security\GenericPrincipal

상속: extends SimplePrincipal
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$loginContext AppserverIo\Psr\Security\Auth\Login\LoginContextInterface The actual login context instance.
$password AppserverIo\Lang\String The principal's password.
$roles AppserverIo\Collection\ArrayList The principal's roles.
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal instance that will be returned from the request.
$username AppserverIo\Lang\String The principal's username.

공개 메소드들

메소드 설명
__construct ( string $username = null, string $password = null, AppserverIo\Collections\ArrayList $roles = null, AppserverIo\Psr\Security\PrincipalInterface $userPrincipal = null, AppserverIo\Psr\Security\Auth\Login\LoginContextInterface $loginContext = null ) Initializes the principal with the data from the passed objects.
getLoginContext ( ) : the Return's the actual login context instance.
getPassword ( ) : the Return's the principal's password.
getRoles ( ) : the Return's the principal's roles.
getUserPrincipal ( ) : the Return's the user principal instance that will be returned from the request.
getUsername ( ) : the Return's the principal's username.

메소드 상세

__construct() 공개 메소드

Initializes the principal with the data from the passed objects.
public __construct ( string $username = null, string $password = null, AppserverIo\Collections\ArrayList $roles = null, AppserverIo\Psr\Security\PrincipalInterface $userPrincipal = null, AppserverIo\Psr\Security\Auth\Login\LoginContextInterface $loginContext = null )
$username string The principal's username
$password string The principal's password
$roles AppserverIo\Collections\ArrayList The principal's roles
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal instance that will be returned from the request
$loginContext AppserverIo\Psr\Security\Auth\Login\LoginContextInterface The actual login context instance

getLoginContext() 공개 메소드

Return's the actual login context instance.
public getLoginContext ( ) : the
리턴 the \AppserverIo\Psr\Security\Auth\Login\LoginContextInterface The login context instance

getPassword() 공개 메소드

Return's the principal's password.
public getPassword ( ) : the
리턴 the \AppserverIo\Lang\String The password

getRoles() 공개 메소드

Return's the principal's roles.
public getRoles ( ) : the
리턴 the \AppserverIo\Collection\ArrayList The roles

getUserPrincipal() 공개 메소드

Return's the user principal instance that will be returned from the request.
public getUserPrincipal ( ) : the
리턴 the \AppserverIo\Psr\Security\PrincipalInterface The user principal

getUsername() 공개 메소드

Return's the principal's username.
public getUsername ( ) : the
리턴 the \AppserverIo\Lang\String The username

프로퍼티 상세

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

The actual login context instance.
protected LoginContextInterface,AppserverIo\Psr\Security\Auth\Login $loginContext
리턴 AppserverIo\Psr\Security\Auth\Login\LoginContextInterface

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

The principal's password.
protected String,AppserverIo\Lang $password
리턴 AppserverIo\Lang\String

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

The principal's roles.
protected ArrayList,AppserverIo\Collection $roles
리턴 AppserverIo\Collection\ArrayList

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

The user principal instance that will be returned from the request.
protected PrincipalInterface,AppserverIo\Psr\Security $userPrincipal
리턴 AppserverIo\Psr\Security\PrincipalInterface

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

The principal's username.
protected String,AppserverIo\Lang $username
리턴 AppserverIo\Lang\String