Class OAuth2Utils
java.lang.Object
com.flyfish.oauth.utils.OAuth2Utils
- Author:
- Ryan Heaton, Dave Syer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use as a prefix for scope approvalstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requestsstatic final StringConstant to use while parsing and formatting parameter maps for OAuth2 requests -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsAll(Set<String> target, Set<String> members) Compare 2 sets and check that one contains all members of the other.extractMap(String query) Extract a map from a query string.static StringmapToQuery(Map<String, String> map) map转换为queryparseParameterList(String values) Parses a string parameter value into a set of strings.
-
Field Details
-
CLIENT_ID
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
CLIENT_SECRET
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
CODE
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
STATE
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
SCOPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
REDIRECT_URI
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
RESPONSE_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
USER_OAUTH_APPROVAL
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
SCOPE_PREFIX
-
GRANT_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests- See Also:
-
-
Constructor Details
-
OAuth2Utils
public OAuth2Utils()
-
-
Method Details
-
parseParameterList
-
extractMap
-
mapToQuery
-
containsAll
-