Package com.inrupt.client.openid
Class OpenIdAuthenticationProvider
- java.lang.Object
-
- com.inrupt.client.openid.OpenIdAuthenticationProvider
-
- All Implemented Interfaces:
AuthenticationProvider
public class OpenIdAuthenticationProvider extends Object implements AuthenticationProvider
An authentication mechanism that makes use of OpenID Tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OpenIdAuthenticationProvider.OpenIdAuthenticator
A mechanism capable of retrieving an access token from an OpenId Provider.
-
Constructor Summary
Constructors Constructor Description OpenIdAuthenticationProvider()
OpenIdAuthenticationProvider(int priority)
Create anOpenIdAuthenticationProvider
with a defined priority.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticator
getAuthenticator(Challenge challenge)
Return an authenticator for the supplied challenge.Set<String>
getSchemes()
Return the set of supported authorization schemes, such as Bearer or DPoP.
-
-
-
Constructor Detail
-
OpenIdAuthenticationProvider
public OpenIdAuthenticationProvider()
-
OpenIdAuthenticationProvider
public OpenIdAuthenticationProvider(int priority)
Create anOpenIdAuthenticationProvider
with a defined priority.- Parameters:
priority
- the priority of this authentication mechanism
-
-
Method Detail
-
getSchemes
public Set<String> 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
public Authenticator getAuthenticator(Challenge challenge)
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
-
-