PHP Класс AppserverIo\Appserver\ServletEngine\Security\GenericPrincipal

Автор: Tim Wagner ([email protected])
Наследование: extends SimplePrincipal
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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