Package io.ryos.rhino.sdk.users.oauth
Interface Authenticator<T,R extends T>
-
- Type Parameters:
T
- The entity type being authenticated.R
- Return type with authentication tokens. The return type is to be a sub type of the entity.
- All Known Subinterfaces:
ServiceAuthenticator
,UserAuthenticator<T>
- All Known Implementing Classes:
OAuthServiceAuthenticatorImpl
,OAuthUserAuthenticatorImpl
public interface Authenticator<T,R extends T>
Generic authenticator authenticates an entity against an authorization server. The entity can be a user or a service instance.- Since:
- 1.6.0
- Author:
- Erhan Bagdemir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
authenticate(T entity)
Authenticates an entity against an authorization server.
-