public class OAuth20CredentialsExtractor extends InitializableWebObject
Modifier and Type | Field and Description |
---|---|
protected O |
configuration |
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
OAuth20CredentialsExtractor(OAuth20Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
C |
extract(WebContext context)
Extract the right credentials.
|
protected OAuth20Credentials |
getOAuthCredentials(WebContext context)
Get the OAuth credentials from the web context.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
String |
toString() |
init, reinit
protected final org.slf4j.Logger logger
protected final O extends OAuthConfiguration configuration
public OAuth20CredentialsExtractor(OAuth20Configuration configuration)
protected OAuth20Credentials getOAuthCredentials(WebContext context) throws HttpAction, CredentialsException
context
- the web contextHttpAction
- whether an additional HTTP action is requiredCredentialsException
- the credentials are invalidprotected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic C extract(WebContext context) throws HttpAction, CredentialsException
CredentialsExtractor
CredentialsException
in case of failure.extract
in interface CredentialsExtractor<C extends OAuthCredentials>
context
- the current web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidCopyright © 2017. All rights reserved.