public function resolve(IRequest $request)
    {
        foreach ($this->tokenTypes as $tokenType) {
            if ($tokenType->match($request)) {
                return $tokenType;
            }
        }

        throw new UnsupportedTokenTypeException;
    }
public function resolve(IRequest $request)
    {
        foreach ($this->tokenTypes as $tokenType) {
            if ($tokenType->match($request)) {
                return $tokenType;
            }
        }

        throw new UnsupportedTokenTypeException;
    }
public function resolve ( IRequest $ request ) { foreach ( $ this -> tokenTypes as $ tokenType ) { if ( $ tokenType -> match ( $ request ) ) { return $ tokenType ; } } throw new UnsupportedTokenTypeException ; }
Resolves token type from request

@param IRequest $request

@return ITokenType
@throws \OAuth2\Exception\UnsupportedTokenTypeException
Resolves token type from request