public class OAuth20Authenticator extends InitializableWebObject
| Modifier and Type | Field and Description |
|---|---|
protected O |
configuration |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
OAuth20Authenticator(OAuth20Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
internalInit(WebContext context) |
protected void |
retrieveAccessToken(OAuthCredentials credentials)
Retrieve the access token from OAuth credentials.
|
String |
toString() |
void |
validate(C credentials,
WebContext context) |
init, reinitprotected final org.slf4j.Logger logger
protected final O extends OAuthConfiguration configuration
public OAuth20Authenticator(OAuth20Configuration 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)
internalInit in class InitializableWebObjectpublic void validate(C credentials,
WebContext context)
throws HttpAction,
CredentialsException
validate in interface Authenticator<C extends OAuthCredentials>HttpActionCredentialsExceptionCopyright © 2017. All Rights Reserved.