public class AbstractOAuthClient extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
authUrl |
protected javax.ws.rs.client.Client |
client |
protected String |
clientId |
protected String |
codeUrl |
protected AtomicLong |
counter |
protected String |
password |
protected String |
stateCookieName |
protected KeyStore |
truststore |
Constructor and Description |
---|
AbstractOAuthClient() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthUrl() |
javax.ws.rs.client.Client |
getClient() |
String |
getClientId() |
String |
getCodeUrl() |
String |
getPassword() |
protected String |
getStateCode() |
String |
getStateCookieName() |
KeyStore |
getTruststore() |
String |
resolveBearerToken(String redirectUri,
String code) |
void |
setAuthUrl(String authUrl) |
void |
setClient(javax.ws.rs.client.Client client) |
void |
setClientId(String clientId) |
void |
setCodeUrl(String codeUrl) |
void |
setPassword(String password) |
void |
setStateCookieName(String stateCookieName) |
void |
setTruststore(KeyStore truststore) |
void |
start() |
void |
stop() |
protected String |
stripOauthParametersFromRedirect(String uri) |
protected String clientId
protected String password
protected KeyStore truststore
protected String authUrl
protected String codeUrl
protected String stateCookieName
protected javax.ws.rs.client.Client client
protected final AtomicLong counter
protected String getStateCode()
public void start()
public void stop()
public String getClientId()
public void setClientId(String clientId)
public String getPassword()
public void setPassword(String password)
public KeyStore getTruststore()
public void setTruststore(KeyStore truststore)
public String getAuthUrl()
public void setAuthUrl(String authUrl)
public String getCodeUrl()
public void setCodeUrl(String codeUrl)
public String getStateCookieName()
public void setStateCookieName(String stateCookieName)
public javax.ws.rs.client.Client getClient()
public void setClient(javax.ws.rs.client.Client client)
Copyright © 2015 JBoss by Red Hat. All rights reserved.