PHP Class AppserverIo\Appserver\ServletEngine\Security\GenericPrincipal

Inheritance: extends SimplePrincipal
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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() public méthode

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

getPassword() public méthode

Return's the principal's password.
public getPassword ( ) : the
Résultat the \AppserverIo\Lang\String The password

getRoles() public méthode

Return's the principal's roles.
public getRoles ( ) : the
Résultat the \AppserverIo\Collection\ArrayList The roles

getUserPrincipal() public méthode

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

getUsername() public méthode

Return's the principal's username.
public getUsername ( ) : the
Résultat the \AppserverIo\Lang\String The username

Property Details

$loginContext protected_oe property

The actual login context instance.
protected LoginContextInterface,AppserverIo\Psr\Security\Auth\Login $loginContext
Résultat AppserverIo\Psr\Security\Auth\Login\LoginContextInterface

$password protected_oe property

The principal's password.
protected String,AppserverIo\Lang $password
Résultat AppserverIo\Lang\String

$roles protected_oe property

The principal's roles.
protected ArrayList,AppserverIo\Collection $roles
Résultat AppserverIo\Collection\ArrayList

$userPrincipal protected_oe property

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

$username protected_oe property

The principal's username.
protected String,AppserverIo\Lang $username
Résultat AppserverIo\Lang\String