Package com.inrupt.client.uma
Class UmaAuthenticationProvider.UmaAuthenticator
java.lang.Object
com.inrupt.client.uma.UmaAuthenticationProvider.UmaAuthenticator
- All Implemented Interfaces:
Authenticator
- Enclosing class:
- UmaAuthenticationProvider
A mechanism capable of retrieving an access token from an UMA authorization server.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUmaAuthenticator(UmaClient umaClient, com.inrupt.client.uma.UmaAuthenticationProvider.NeedInfoHandler claimHandler, Challenge challenge, int priority) The UmaAuthenticator with a defined challenge and priority. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(ClaimGatheringHandler handler) Add a claim gathering handler.authenticate(Session session, Request request, Set<String> algorithms) Perform an ansynchronous authentication process, resulting in an access token.getName()Gets the authenticator name (e.g.intGets the priority of the authenticator.toString()
-
Constructor Details
-
UmaAuthenticator
protected UmaAuthenticator(UmaClient umaClient, com.inrupt.client.uma.UmaAuthenticationProvider.NeedInfoHandler claimHandler, Challenge challenge, int priority) The UmaAuthenticator with a defined challenge and priority.- Parameters:
umaClient- the UMA clientchallenge- the resource server challengepriority- the priority of this authentication mechanism
-
-
Method Details
-
addHandler
Add a claim gathering handler.- Parameters:
handler- the claim gathering handler
-
getName
Description copied from interface:AuthenticatorGets the authenticator name (e.g. UMA, OpenID).- Specified by:
getNamein interfaceAuthenticator- Returns:
- the name
-
getPriority
public int getPriority()Description copied from interface:AuthenticatorGets the priority of the authenticator.- Specified by:
getPriorityin interfaceAuthenticator- Returns:
- the priority
-
authenticate
public CompletionStage<Credential> authenticate(Session session, Request request, Set<String> algorithms) Description copied from interface:AuthenticatorPerform an ansynchronous authentication process, resulting in an access token.- Specified by:
authenticatein interfaceAuthenticator- Parameters:
session- the client sessionrequest- the HTTP requestalgorithms- the supported DPoP algorithms- Returns:
- the next stage of completion, containing the access token
-
toString
-