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 TypeClassDescriptionclass
A mechanism capable of retrieving an access token from an UMA authorization server. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUmaAuthenticationProvider
(int priority) Create aUmaAuthenticationProvider
with a defined priority.UmaAuthenticationProvider
(int priority, UmaClient umaClient) Create aUmaAuthenticationProvider
with 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 aUmaAuthenticationProvider
with a defined priority.- Parameters:
priority
- the priority of this authentication mechanism
-
UmaAuthenticationProvider
Create aUmaAuthenticationProvider
with a defined priority.- Parameters:
priority
- the priority of this authentication mechanismumaClient
- an UMA HTTP client
-
-
Method Details
-
getSchemes
Description copied from interface:AuthenticationProvider
Return the set of supported authorization schemes, such as Bearer or DPoP.- Specified by:
getSchemes
in interfaceAuthenticationProvider
- Returns:
- the authorization schemes
-
getAuthenticator
Description copied from interface:AuthenticationProvider
Return an authenticator for the supplied challenge.- Specified by:
getAuthenticator
in interfaceAuthenticationProvider
- Parameters:
challenge
- the HTTP challenge value- Returns:
- an authenticator
-