public class OAuth10Authenticator extends InitializableWebObject
Modifier and Type | Field and Description |
---|---|
protected O |
configuration |
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
OAuth10Authenticator(OAuth10Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected void |
retrieveAccessToken(OAuthCredentials credentials)
Retrieve the access token from OAuth credentials.
|
String |
toString() |
void |
validate(C credentials,
WebContext context)
Validate the credentials.
|
init, reinit
protected final org.slf4j.Logger logger
protected final O extends OAuthConfiguration configuration
public OAuth10Authenticator(OAuth10Configuration configuration)
protected void retrieveAccessToken(OAuthCredentials credentials) throws HttpAction, OAuthCredentialsException
credentials
- credentialsHttpAction
- whether an additional HTTP action is requiredOAuthCredentialsException
- the credentials are invalidprotected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic void validate(C credentials, WebContext context) throws HttpAction, CredentialsException
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<C extends OAuthCredentials>
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidCopyright © 2017. All rights reserved.