Class OAuth10CredentialsExtractor
java.lang.Object
org.pac4j.oauth.credentials.extractor.OAuth10CredentialsExtractor
- All Implemented Interfaces:
org.pac4j.core.credentials.extractor.CredentialsExtractor
OAuth 1.0 credentials extractor.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.pac4j.core.client.IndirectClient
protected OAuthConfiguration
protected final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionOAuth10CredentialsExtractor
(OAuth10Configuration configuration, org.pac4j.core.client.IndirectClient client) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.pac4j.core.credentials.Credentials>
extract
(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.factory.ProfileManagerFactory profileManagerFactory) protected Optional<org.pac4j.core.credentials.Credentials>
getOAuthCredentials
(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Get the OAuth credentials from the web context.
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
configuration
-
client
protected org.pac4j.core.client.IndirectClient client
-
-
Constructor Details
-
OAuth10CredentialsExtractor
public OAuth10CredentialsExtractor(OAuth10Configuration configuration, org.pac4j.core.client.IndirectClient client)
-
-
Method Details
-
getOAuthCredentials
protected Optional<org.pac4j.core.credentials.Credentials> getOAuthCredentials(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Get the OAuth credentials from the web context.- Parameters:
context
- the web contextsessionStore
- the session store- Returns:
- the OAuth credentials
-
extract
public Optional<org.pac4j.core.credentials.Credentials> extract(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.factory.ProfileManagerFactory profileManagerFactory) - Specified by:
extract
in interfaceorg.pac4j.core.credentials.extractor.CredentialsExtractor
-