protected function getUsersPassword()
    {

        try {
            // load the application context
            $application = RequestHandler::getApplicationContext();

            // load and return the user's password or throw an exception
            return new String($application->search(sprintf('%s/%s', $this->userPathPrefix, $this->getUsername())));

        } catch (\Exception $e) {
            throw new LoginException('No matching username found in naming directory');
        }
    }
protected function getUsersPassword()
    {

        try {
            // load the application context
            $application = RequestHandler::getApplicationContext();

            // load and return the user's password or throw an exception
            return new String($application->search(sprintf('%s/%s', $this->userPathPrefix, $this->getUsername())));

        } catch (\Exception $e) {
            throw new LoginException('No matching username found in naming directory');
        }
    }
protected function getUsersPassword ( ) { try { // load the application context $ application = RequestHandler :: getApplicationContext ( ) ; // load and return the user's password or throw an exception return new String ( $ application -> search ( sprintf ( '%s/%s' , $ this -> userPathPrefix , $ this -> getUsername ( ) ) ) ) ; } catch ( \ Exception $ e ) { throw new LoginException ( 'No matching username found in naming directory' ) ; } }
Returns the password for the user from the naming directory.

@return \AppserverIo\Lang\String The user's password
@throws \AppserverIo\Psr\Security\Auth\Login\LoginException Is thrown if password can't be loaded
Returns the password for the user from the naming directory .