public function authenticate($method, $arguments)
    {
        $handlers = $this->filterHandlers($method, $arguments);

        if (count($handlers) > 0) {
            foreach ($handlers as $handler) {
                $isAuthenticated = $handler->authenticate($method, $arguments);

                if ($isAuthenticated) {
                    return;
                }
            }

            throw new InvalidAuth();
        } else {
            throw new MissingAuth();
        }
    }
public function authenticate($method, $arguments)
    {
        $handlers = $this->filterHandlers($method, $arguments);

        if (count($handlers) > 0) {
            foreach ($handlers as $handler) {
                $isAuthenticated = $handler->authenticate($method, $arguments);

                if ($isAuthenticated) {
                    return;
                }
            }

            throw new InvalidAuth();
        } else {
            throw new MissingAuth();
        }
    }
public function authenticate ( $ method , $ arguments ) { $ handlers = $ this -> filterHandlers ( $ method , $ arguments ) ; if ( count ( $ handlers ) > 0 ) { foreach ( $ handlers as $ handler ) { $ isAuthenticated = $ handler -> authenticate ( $ method , $ arguments ) ; if ( $ isAuthenticated ) { return ; } } throw new InvalidAuth ( ) ; } else { throw new MissingAuth ( ) ; } }
Attempt to authorize a request. This will iterate over all authentication handlers that can handle this type of
request. It will stop after it has found one that can authenticate the request.

@param string $method JSON-RPC method name
@param array $arguments JSON-RPC arguments array (positional or associative)
@throws MissingAuth If the no credentials are given
@throws InvalidAuth If the given credentials are invalid
Attempt to authorize a request . This will iterate over all authentication handlers that can handle this type of request . It will stop after it has found one that can authenticate the request .