private AuthorizationIssueResponse callAuthorizationIssue(
            String ticket, String subject, long authTime, String acr,
            Map<String, Object> claims, Property[] properties, String[] scopes)
    {
        // Create a request for /api/auth/authorization/issue API.
        AuthorizationIssueRequest request = new AuthorizationIssueRequest()
            .setTicket(ticket)
            .setSubject(subject)
            .setAuthTime(authTime)
            .setAcr(acr)
            .setProperties(properties)
            .setScopes(scopes)
            ;

        if (claims != null && claims.size() != 0)
        {
            request.setClaims(claims);
        }

        try
        {
            // Call Authlete's /api/auth/authorization/issue API.
            return mApi.authorizationIssue(request);
        }
        catch (AuthleteApiException e)
        {
            // The API call failed.
            throw apiFailure("/api/auth/authorization/issue", e);
        }
    }
private AuthorizationIssueResponse callAuthorizationIssue ( String ticket , String subject , long authTime , String acr , Map < String , Object > claims , Property [ ] properties , String [ ] scopes ) { AuthorizationIssueRequest request = new AuthorizationIssueRequest ( ) . setTicket ( ticket ) . setSubject ( subject ) . setAuthTime ( authTime ) . setAcr ( acr ) . setProperties ( properties ) . setScopes ( scopes ) ; if ( claims != null && claims . size ( ) != 0 ) { request . setClaims ( claims ) ; } try { return mApi . authorizationIssue ( request ) ; } catch ( AuthleteApiException e ) { throw apiFailure ( "/api/auth/authorization/issue" , e ) ; } }
Call Authlete's {@code /api/auth/authorization/issue} API.