org.springframework.security.oauth2.common.util
类 OAuth2Utils

java.lang.Object
  继承者 org.springframework.security.oauth2.common.util.OAuth2Utils

public abstract class OAuth2Utils
extends Object

作者:
Ryan Heaton, Dave Syer

字段摘要
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 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
 
构造方法摘要
OAuth2Utils()
           
 
方法摘要
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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

CLIENT_ID

public static final String CLIENT_ID
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

STATE

public static final String STATE
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

SCOPE

public static final String SCOPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

REDIRECT_URI

public static final String REDIRECT_URI
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

RESPONSE_TYPE

public static final String RESPONSE_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

USER_OAUTH_APPROVAL

public static final String USER_OAUTH_APPROVAL
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值

GRANT_TYPE

public static final String GRANT_TYPE
Constant to use while parsing and formatting parameter maps for OAuth2 requests

另请参见:
常量字段值
构造方法详细信息

OAuth2Utils

public OAuth2Utils()
方法详细信息

parseParameterList

public static Set<String> parseParameterList(String values)
Parses a string parameter value into a set of strings.

参数:
values - The values of the set.
返回:
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.

参数:
value - The value of the parameter.
返回:
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.

参数:
query - a query (or fragment) string from a URI
返回:
a Map of the values in the query


Copyright © 2013. All rights reserved.