public final class OAuth2Parameters extends ParameterMap
Constructor and Description |
---|
OAuth2Parameters()
Creates a new OAuth2Parameters map that is initially empty.
|
OAuth2Parameters(Map<String,List<String>> parameters)
Creates a new OAuth2Parameters populated from the initial parameters provided.
|
Modifier and Type | Method and Description |
---|---|
String |
getRedirectUri()
The authorization callback url.
|
String |
getScope()
The permissions the application is seeking with the authorization (optional).
|
String |
getState()
An opaque key that must be included in the provider's authorization callback (optional).
|
void |
setRedirectUri(String redirectUri)
Sets the authorization callback url.
|
void |
setScope(String scope)
Sets the permissions the application is seeking with the authorization (optional).
|
void |
setState(String state)
Sets an opaque key that must be included in the provider's authorization callback (optional).
|
add, clear, containsKey, containsValue, entrySet, get, getFirst, isEmpty, keySet, put, putAll, remove, set, setAll, size, toSingleValueMap, values
public OAuth2Parameters()
public OAuth2Parameters(Map<String,List<String>> parameters)
parameters
- the initial parameterssetRedirectUri(String)
,
setScope(String)
,
setState(String)
public String getRedirectUri()
public void setRedirectUri(String redirectUri)
redirectUri
- the authorization callback URLpublic String getScope()
public void setScope(String scope)
scope
- sets the permissions the application is seeking with the authorization.public String getState()
public void setState(String state)
state
- an opaque key that must be included in the provider's authorization callback