All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clouway.oauth2.AuthorizedClientActivity Maven / Gradle / Ivy

package com.clouway.oauth2;

import com.clouway.friendlyserve.Request;
import com.clouway.friendlyserve.Response;
import com.clouway.oauth2.client.Client;

import java.util.Set;

/**
 * AuthorizedClientActivity is an activity which is represents the authorization client.
 *
 * @author Miroslav Genov ([email protected])
 */
interface AuthorizedClientActivity {

  /**
   * Handles client request of authorized client and returns response.
   *
   * @param client  the client of which request will be handled
   * @param request the request
   * @param instant the time of which client was requested access
   * @return the response
   */
  Response execute(Client client, Identity identity, Set scopes, Request request, DateTime instant);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy