src/main/java/com/authlete/jaxrs/UserInfoRequestHandler.java
private Response getUserInfo(UserInfoResponse response)
    {
        // Collect claim values of the user.
        Map<String, Object> claims = collectClaims(response.getSubject(), response.getClaims());

        try
        {
            // Generate a JSON or a JWT containing user information
            // by calling Authlete's /api/auth/userinfo/issue API.
            return getApiCaller().userInfoIssue(response.getToken(), claims);
        }
        catch (WebApplicationException e)
        {
            return e.getResponse();
        }
    }
private Response getUserInfo(UserInfoResponse response)
    {
        // Collect claim values of the user.
        Map<String, Object> claims = collectClaims(response.getSubject(), response.getClaims());

        try
        {
            // Generate a JSON or a JWT containing user information
            // by calling Authlete's /api/auth/userinfo/issue API.
            return getApiCaller().userInfoIssue(response.getToken(), claims);
        }
        catch (WebApplicationException e)
        {
            return e.getResponse();
        }
    }
Generate a JSON or a JWT containing user information by calling
Authlete's {@code /api/auth/userinfo/issue} API.