com.clouway.oauth2.user.IdentityFinder Maven / Gradle / Ivy
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