|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.common.util.OAuth2Utils
public abstract class OAuth2Utils
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
OAuth2Utils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public OAuth2Utils()
| Method Detail |
|---|
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 URI
public static boolean containsAll(Set<String> target,
Set<String> members)
target - set of strings to checkmembers - the members to compare to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||