public class OAuth2AuthorizationURL extends Object
OAuth2Auth.authorizeURL(OAuth2AuthorizationURL)| Constructor and Description |
|---|
OAuth2AuthorizationURL()
Default constructor
|
OAuth2AuthorizationURL(JsonObject json)
Constructor to create an options from JSON
|
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizationURL |
addScope(String scope)
Add a scope
|
Map<String,String> |
getAdditionalParameters()
Get the additional parameters
|
String |
getRedirectUri()
Get the redirect URI
|
List<String> |
getScopes()
Get the scopes
|
String |
getState()
Get the state
|
OAuth2AuthorizationURL |
putAdditionalParameter(String key,
String value)
Add an additional parameter
|
OAuth2AuthorizationURL |
setAdditionalParameters(Map<String,String> additionalParameters)
Set the additional parameters
|
OAuth2AuthorizationURL |
setRedirectUri(String redirectUri)
Set the redirect URI
|
OAuth2AuthorizationURL |
setScopes(List<String> scopes)
Set the scopes
|
OAuth2AuthorizationURL |
setState(String state)
Set the state
|
JsonObject |
toJson() |
String |
toString() |
public OAuth2AuthorizationURL()
public OAuth2AuthorizationURL(JsonObject json)
json - the JSONpublic String getRedirectUri()
public OAuth2AuthorizationURL setRedirectUri(String redirectUri)
redirectUri - the redirectUri to setpublic OAuth2AuthorizationURL setScopes(List<String> scopes)
scopes - the scopes to setpublic OAuth2AuthorizationURL addScope(String scope)
scope - the scope to addpublic String getState()
public OAuth2AuthorizationURL setState(String state)
state - the state to setpublic Map<String,String> getAdditionalParameters()
public OAuth2AuthorizationURL setAdditionalParameters(Map<String,String> additionalParameters)
additionalParameters - the additionalParameters to set. Both key and value should be in final format that is expected by the provider.
Example: "ui_locales" -> "fr-CA fr en"public OAuth2AuthorizationURL putAdditionalParameter(String key, String value)
key - the key of the parameter. Should be in final format that is expected by the provider. Example: "ui_locales"value - the value of the parameter. Should be in final format that is expected by the provider. Example: "fr-CA fr en"public JsonObject toJson()
Copyright © 2023 Eclipse. All rights reserved.