public class OAuth10Authenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected IndirectClient |
client |
protected O |
configuration |
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
OAuth10Authenticator(OAuth10Configuration configuration,
IndirectClient client) |
Modifier and Type | Method and Description |
---|---|
protected void |
retrieveAccessToken(WebContext context,
OAuthCredentials credentials)
Retrieve the access token from OAuth credentials.
|
void |
validate(C credentials,
WebContext context)
Validate the credentials.
|
protected final org.slf4j.Logger logger
protected O extends OAuthConfiguration configuration
protected IndirectClient client
public OAuth10Authenticator(OAuth10Configuration configuration, IndirectClient client)
protected void retrieveAccessToken(WebContext context, OAuthCredentials credentials)
context
- the web contextcredentials
- credentialspublic void validate(C credentials, WebContext context)
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<C extends OAuthCredentials>
credentials
- the given credentialscontext
- the web contextCopyright © 2019. All rights reserved.