public class OAuth2TokenExtractor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TOKEN |
protected List<BrowserListener> |
browserListeners |
static String |
CODE |
static String |
TITLE |
static String |
TOKEN |
Constructor and Description |
---|
OAuth2TokenExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
addBrowserListener(BrowserListener listener) |
void |
extractAccessToken(OAuth2Parameters parameters) |
void |
extractAccessTokenForClientCredentialsGrant(OAuth2Parameters parameters) |
protected UserBrowserFacade |
getBrowserFacade() |
org.apache.oltu.oauth2.client.request.OAuthClientRequest |
getClientRequestForClientCredentialsGrant(OAuth2Parameters parameters) |
org.apache.oltu.oauth2.client.request.OAuthClientRequest |
getClientRequestForROPC(OAuth2Parameters parameters) |
protected org.apache.oltu.oauth2.client.OAuthClient |
getOAuthClient() |
public static final String CODE
public static final String TITLE
public static final String TOKEN
public static final String ACCESS_TOKEN
protected List<BrowserListener> browserListeners
public void extractAccessToken(OAuth2Parameters parameters) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, MalformedURLException, URISyntaxException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemException
MalformedURLException
URISyntaxException
org.apache.oltu.oauth2.common.exception.OAuthProblemException
public org.apache.oltu.oauth2.client.request.OAuthClientRequest getClientRequestForROPC(OAuth2Parameters parameters) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthSystemException
public void extractAccessTokenForClientCredentialsGrant(OAuth2Parameters parameters) throws org.apache.oltu.oauth2.common.exception.OAuthProblemException, org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemException
public org.apache.oltu.oauth2.client.request.OAuthClientRequest getClientRequestForClientCredentialsGrant(OAuth2Parameters parameters) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthSystemException
public void addBrowserListener(BrowserListener listener)
protected org.apache.oltu.oauth2.client.OAuthClient getOAuthClient()
protected UserBrowserFacade getBrowserFacade()
Copyright © 2019. All Rights Reserved.