class AuthorizeResponse extends WebResponse {

    public static AuthorizeResponse fromUri(Uri uri) {
        AuthorizeResponse response = new AuthorizeResponse();
        response.code = uri.getQueryParameter("code");
        response.error = uri.getQueryParameter("error");
        response.error_description = uri.getQueryParameter("error_description");
        response.expires_in = uri.getQueryParameter("expires_in");
        response.id_token = uri.getQueryParameter("id_token");
        response.scope = uri.getQueryParameter("scope");
        response.state = uri.getQueryParameter("state");
        response.token_type = uri.getQueryParameter("token_type");
        response.iss = uri.getQueryParameter("iss");
        response.type_hint = uri.getQueryParameter("type_hint");
        response.session_hint = uri.getQueryParameter("session_hint");
        response.login_hint = uri.getQueryParameter("login_hint");
        return response;
    }

    private  AuthorizeResponse();

}