Package com.inrupt.client.uma
Class UmaAuthenticationProvider
java.lang.Object
com.inrupt.client.uma.UmaAuthenticationProvider
- All Implemented Interfaces:
AuthenticationProvider
An authentication mechanism that makes use of User Managed Access (UMA) authorization servers.
UMA defines an OAuth 2.0 profile by which applications can negotiate for an access token through an iterative claims gathering process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA mechanism capable of retrieving an access token from an UMA authorization server. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUmaAuthenticationProvider(int priority) Create aUmaAuthenticationProviderwith a defined priority.UmaAuthenticationProvider(int priority, UmaClient umaClient) Create aUmaAuthenticationProviderwith a defined priority. -
Method Summary
Modifier and TypeMethodDescriptiongetAuthenticator(Challenge challenge) Return an authenticator for the supplied challenge.Return the set of supported authorization schemes, such as Bearer or DPoP.
-
Field Details
-
ID_TOKEN
-
VERIFIABLE_CREDENTIAL
-
-
Constructor Details
-
UmaAuthenticationProvider
public UmaAuthenticationProvider() -
UmaAuthenticationProvider
public UmaAuthenticationProvider(int priority) Create aUmaAuthenticationProviderwith a defined priority.- Parameters:
priority- the priority of this authentication mechanism
-
UmaAuthenticationProvider
Create aUmaAuthenticationProviderwith a defined priority.- Parameters:
priority- the priority of this authentication mechanismumaClient- an UMA HTTP client
-
-
Method Details
-
getSchemes
Description copied from interface:AuthenticationProviderReturn the set of supported authorization schemes, such as Bearer or DPoP.- Specified by:
getSchemesin interfaceAuthenticationProvider- Returns:
- the authorization schemes
-
getAuthenticator
Description copied from interface:AuthenticationProviderReturn an authenticator for the supplied challenge.- Specified by:
getAuthenticatorin interfaceAuthenticationProvider- Parameters:
challenge- the HTTP challenge value- Returns:
- an authenticator
-