Package com.inrupt.client.auth
Interface Authenticator
-
- All Known Implementing Classes:
OpenIdAuthenticationProvider.OpenIdAuthenticator
public interface Authenticator
An interface for handling authentication challenges.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Credential>
authenticate(Session session, Request request, Set<String> algorithms)
Perform an ansynchronous authentication process, resulting in an access token.String
getName()
Gets the authenticator name (e.g.int
getPriority()
Gets the priority of the authenticator.
-
-
-
Method Detail
-
getName
String getName()
Gets the authenticator name (e.g. UMA, OpenID).- Returns:
- the name
-
getPriority
int getPriority()
Gets the priority of the authenticator.- Returns:
- the priority
-
authenticate
CompletionStage<Credential> authenticate(Session session, Request request, Set<String> algorithms)
Perform an ansynchronous authentication process, resulting in an access token.- Parameters:
session
- the client sessionrequest
- the HTTP requestalgorithms
- the supported DPoP algorithms- Returns:
- the next stage of completion, containing the access token
-
-