public final class OAuth2Parameters extends ParameterMap
| Constructor and Description |
|---|
OAuth2Parameters()
Creates a new OAuth2Parameters map that is initially empty.
|
OAuth2Parameters(java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)
Creates a new OAuth2Parameters populated from the initial parameters provided.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRedirectUri()
The authorization callback url.
|
java.lang.String |
getScope()
The permissions the application is seeking with the authorization (optional).
|
java.lang.String |
getState()
An opaque key that must be included in the provider's authorization callback (optional).
|
void |
setRedirectUri(java.lang.String redirectUri)
Sets the authorization callback url.
|
void |
setScope(java.lang.String scope)
Sets the permissions the application is seeking with the authorization (optional).
|
void |
setState(java.lang.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, valuespublic OAuth2Parameters()
public OAuth2Parameters(java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)
parameters - the initial parameterssetRedirectUri(String),
setScope(String),
setState(String)public java.lang.String getRedirectUri()
public void setRedirectUri(java.lang.String redirectUri)
redirectUri - the authorization callback URLpublic java.lang.String getScope()
public void setScope(java.lang.String scope)
scope - sets the permissions the application is seeking with the authorization.public java.lang.String getState()
public void setState(java.lang.String state)
state - an opaque key that must be included in the provider's authorization callback