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 Detail

      • authenticate

        R authenticate​(T entity)
        Authenticates an entity against an authorization server. The entity can be a user or a service.

        Parameters:
        entity - The entity to be authenticated.
        Returns:
        Authenticated entity type which has is-a relationship to the entity type being authenticated.