public interface OAuth2ServiceProvider
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizationServerURL() |
String |
getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
Returns the authorization URL
|
String |
getClientId() |
String |
getClientSecret() |
Long |
getId() |
List<String> |
getScopes() |
String |
getServiceName() |
String |
getTokenServerURL() |
com.google.api.client.auth.oauth2.Credential |
handleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)
Handles the authorization response and stores the token(s)
|
boolean |
isEnabled() |
com.google.api.client.auth.oauth2.Credential |
loadCredential(String user)
Loads a credential from the token store
|
void |
setAuthorizationServerURL(String authorizationServerURL) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setEnabled(Boolean enabled) |
void |
setId(Long id) |
void |
setScopes(String... strings) |
void |
setServiceName(String serviceName) |
void |
setTokenServerURL(String tokenServerURL) |
String getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
com.google.api.client.auth.oauth2.Credential handleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)
com.google.api.client.auth.oauth2.Credential loadCredential(String user)
void setId(Long id)
void setAuthorizationServerURL(String authorizationServerURL)
void setTokenServerURL(String tokenServerURL)
void setServiceName(String serviceName)
void setClientId(String clientId)
void setClientSecret(String clientSecret)
void setScopes(String... strings)
String getServiceName()
Long getId()
String getTokenServerURL()
String getClientId()
String getClientSecret()
String getAuthorizationServerURL()
boolean isEnabled()
void setEnabled(Boolean enabled)
Copyright © 2015 Nuxeo SA. All rights reserved.