public class OAuth20CredentialsExtractor extends Object
Modifier and Type | Field and Description |
---|---|
protected IndirectClient |
client |
protected O |
configuration |
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
OAuth20CredentialsExtractor(OAuth20Configuration configuration,
IndirectClient client) |
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 final org.slf4j.Logger logger
protected O extends OAuthConfiguration configuration
protected IndirectClient client
public OAuth20CredentialsExtractor(OAuth20Configuration configuration, IndirectClient client)
protected OAuth20Credentials getOAuthCredentials(WebContext context)
context
- the web contextpublic C extract(WebContext context)
CredentialsExtractor
CredentialsException
in case of failure.extract
in interface CredentialsExtractor<C extends OAuthCredentials>
context
- the current web contextCopyright © 2019. All rights reserved.