public abstract class OAuth2Utils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_ID
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
GRANT_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
REDIRECT_URI
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
RESPONSE_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
SCOPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
SCOPE_PREFIX
Constant to use as a prefix for scope approval
|
static String |
STATE
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
static String |
USER_OAUTH_APPROVAL
Constant to use while parsing and formatting parameter maps for OAuth2 requests
|
Constructor and Description |
---|
OAuth2Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAll(Set<String> target,
Set<String> members)
Compare 2 sets and check that one contains all members of the other.
|
static Map<String,String> |
extractMap(String query)
Extract a map from a query string.
|
static String |
formatParameterList(Collection<String> value)
Formats a set of string values into a format appropriate for sending as a single-valued form value.
|
static Set<String> |
parseParameterList(String values)
Parses a string parameter value into a set of strings.
|
public static final String CLIENT_ID
public static final String STATE
public static final String SCOPE
public static final String REDIRECT_URI
public static final String RESPONSE_TYPE
public static final String USER_OAUTH_APPROVAL
public static final String SCOPE_PREFIX
public static final String GRANT_TYPE
public static Set<String> parseParameterList(String values)
values
- The values of the set.public static String formatParameterList(Collection<String> value)
value
- The value of the parameter.public static Map<String,String> extractMap(String query)
query
- a query (or fragment) string from a URICopyright © 2019. All rights reserved.