org.springframework.security.oauth2.common.util
Class OAuth2Utils
java.lang.Object
org.springframework.security.oauth2.common.util.OAuth2Utils
public abstract class OAuth2Utils
- extends Object
- Author:
- Ryan Heaton, Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2Utils
public OAuth2Utils()
parseParameterList
public static Set<String> parseParameterList(String values)
- Parses a string parameter value into a set of strings.
- Parameters:
values - The values of the set.
- Returns:
- The set.
formatParameterList
public static String formatParameterList(Collection<String> value)
- Formats a set of string values into a format appropriate for sending as a single-valued form value.
- Parameters:
value - The value of the parameter.
- Returns:
- The value formatted for form submission etc, or null if the input is empty
extractMap
public static Map<String,String> extractMap(String query)
- Extract a map from a query string.
- Parameters:
query - a query (or fragment) string from a URI
- Returns:
- a Map of the values in the query
Copyright © 2012. All Rights Reserved.