public class OAuth extends Object implements Authentication
| Constructor and Description |
|---|
OAuth() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToParams(List<Pair> queryParams,
Map<String,String> headerParams)
Apply authentication settings to header and query params.
|
void |
finishFlow(String code,
String state)
Finish the oauth flow after the user was redirected back.
|
String |
getAccessToken() |
String |
getAuthorizationUri(String redirectUri,
Set<String> scopes,
String state)
Get the authorization uri, where the user logs in.
|
String |
getClientId() |
String |
getClientSecret() |
String |
getRefreshToken() |
void |
setAccessToken(String accessToken) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRefreshToken(String refreshToken) |
public static final String URI_OAUTH
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams)
AuthenticationapplyToParams in interface AuthenticationqueryParams - List of query parametersheaderParams - Map of header parameterspublic String getAuthorizationUri(String redirectUri, Set<String> scopes, String state)
redirectUri - Uri the user is redirected to, after successful authorization.
This must be the same as specified at the Eve Online developer
page.scopes - Scopes of the Eve Online SSO.state - This should be some secret to prevent XRSF, please read:
http://www.thread-safe.com/2014/05/the-correct-use-of-state-
parameter-in.htmlpublic void finishFlow(String code, String state) throws ApiException
code - Code returned by the Eve Online SSOstate - This should be some secret to prevent XRSF see
getAuthorizationUriApiExceptionpublic void setAccessToken(String accessToken)
public void setRefreshToken(String refreshToken)
public void setClientId(String clientId)
public void setClientSecret(String clientSecret)
public String getRefreshToken()
public String getClientId()
public String getClientSecret()
public String getAccessToken()
Copyright © 2018. All Rights Reserved.