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

com.clouway.oauth2.user.IdentityFinder Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package com.clouway.oauth2.user;

import com.clouway.oauth2.http.Request;
import com.google.common.base.Optional;

/**
 * IdentityFinder is finding the Identity of the request.
 *
 * @author Mihail Lesikov ([email protected])
 */
public interface IdentityFinder {
  /**
   * Finds Identity of the caller.
   *
   * @param request the request from which identity will be retrieved
   * @return an optional value with the identity id if it's associated with the provided request or absent value if not
   */
  Optional find(Request request);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy