AppserverIo\Appserver\ServletEngine\Http\Request::setUserPrincipal PHP Method

setUserPrincipal() public method

Set's the user principal for this request.
public setUserPrincipal ( AppserverIo\Psr\Security\PrincipalInterface $userPrincipal = null ) : void
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The user principal
return void
    public function setUserPrincipal(PrincipalInterface $userPrincipal = null)
    {
        $this->userPrincipal = $userPrincipal;
    }