public Response authorizationIssue(
            String ticket, String subject, long authTime, String acr,
            Map<String, Object> claims, Property[] properties, String[] scopes) {
    """
	Issue an authorization code, an ID token and/or an access token.
	This method calls Authlete's {@code /api/auth/authorization/issue} API.
    """
        // Call Authlete's /api/auth/authorization/issue API.
        AuthorizationIssueResponse response =
            callAuthorizationIssue(ticket, subject, authTime, acr, claims, properties, scopes);

        // 'action' in the response denotes the next action which
        // this service implementation should take.
        AuthorizationIssueResponse.Action action = response.getAction();

        // The content of the response to the client application.
        // The format of the content varies depending on the action.
        String content = response.getResponseContent();

        // Dispatch according to the action.
        switch (action)
        {
            case INTERNAL_SERVER_ERROR:
                // 500 Internal Server Error
                return ResponseUtil.internalServerError(content);

            case BAD_REQUEST:
                // 400 Bad Request
                return ResponseUtil.badRequest(content);

            case LOCATION:
                // 302 Found
                return ResponseUtil.location(content);

            case FORM:
                // 200 OK
                return ResponseUtil.form(content);

            default:
                // This never happens.
                throw unknownAction("/api/auth/authorization/issue", action);
        }
    }
public Response authorizationIssue(
            String ticket, String subject, long authTime, String acr,
            Map<String, Object> claims, Property[] properties, String[] scopes)
    {
        // Call Authlete's /api/auth/authorization/issue API.
        AuthorizationIssueResponse response =
            callAuthorizationIssue(ticket, subject, authTime, acr, claims, properties, scopes);

        // 'action' in the response denotes the next action which
        // this service implementation should take.
        AuthorizationIssueResponse.Action action = response.getAction();

        // The content of the response to the client application.
        // The format of the content varies depending on the action.
        String content = response.getResponseContent();

        // Dispatch according to the action.
        switch (action)
        {
            case INTERNAL_SERVER_ERROR:
                // 500 Internal Server Error
                return ResponseUtil.internalServerError(content);

            case BAD_REQUEST:
                // 400 Bad Request
                return ResponseUtil.badRequest(content);

            case LOCATION:
                // 302 Found
                return ResponseUtil.location(content);

            case FORM:
                // 200 OK
                return ResponseUtil.form(content);

            default:
                // This never happens.
                throw unknownAction("/api/auth/authorization/issue", action);
        }
    }
public Response authorizationIssue ( String ticket , String subject , long authTime , String acr , Map < String , Object > claims , Property [ ] properties , String [ ] scopes ) { // Call Authlete's /api/auth/authorization/issue API. AuthorizationIssueResponse response = callAuthorizationIssue ( ticket , subject , authTime , acr , claims , properties , scopes ) ; // 'action' in the response denotes the next action which // this service implementation should take. AuthorizationIssueResponse . Action action = response . getAction ( ) ; // The content of the response to the client application. // The format of the content varies depending on the action. String content = response . getResponseContent ( ) ; // Dispatch according to the action. switch ( action ) { case INTERNAL_SERVER_ERROR : // 500 Internal Server Error return ResponseUtil . internalServerError ( content ) ; case BAD_REQUEST : // 400 Bad Request return ResponseUtil . badRequest ( content ) ; case LOCATION : // 302 Found return ResponseUtil . location ( content ) ; case FORM : // 200 OK return ResponseUtil . form ( content ) ; default : // This never happens. throw unknownAction ( "/api/auth/authorization/issue" , action ) ; } }
Issue an authorization code, an ID token and/or an access token.
This method calls Authlete's {@code /api/auth/authorization/issue} API.
Issue an authorization code an ID token and / or an access token . This method calls Authlete s {