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

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

package com.clouway.oauth2;

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

/**
 * ClientActivity is representing Activity for a single client (in the context of OAuth2).
 *
 * @author Miroslav Genov ([email protected])
 */
public interface ClientActivity {

  /**
   * Handles client request 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, Request request, DateTime instant);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy