AppserverIo\Appserver\ServletEngine\Security\Realm::__construct PHP Method

__construct() public method

Initialize the security domain with the passed name.
public __construct ( AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface $authenticationManager, string $name )
$authenticationManager AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance
$name string The security domain's name
    public function __construct(AuthenticationManagerInterface $authenticationManager, $name)
    {
        // set the passed parameters
        $this->name = $name;
        $this->authenticationManager = $authenticationManager;
        // initialize the exception stack
        $this->exceptionStack = new ArrayList();
    }