类 OAuth2Utils

java.lang.Object
com.flyfish.oauth.utils.OAuth2Utils

public abstract class OAuth2Utils extends Object
作者:
Ryan Heaton, Dave Syer
  • 字段详细资料

    • CLIENT_ID

      public static final String CLIENT_ID
      Constant to use while parsing and formatting parameter maps for OAuth2 requests
      另请参阅:
    • CLIENT_SECRET

      public static final String CLIENT_SECRET
      Constant to use while parsing and formatting parameter maps for OAuth2 requests
      另请参阅:
    • CODE

      public static final String CODE
      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
      另请参阅:
    • SCOPE_PREFIX

      public static final String SCOPE_PREFIX
      Constant to use as a prefix for scope approval
      另请参阅:
    • 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.
    • 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
    • mapToQuery

      public static String mapToQuery(Map<String,String> map)
      map转换为query
      参数:
      map - map
      返回:
      结果字符串
    • containsAll

      public static boolean containsAll(Set<String> target, Set<String> members)
      Compare 2 sets and check that one contains all members of the other.
      参数:
      target - set of strings to check
      members - the members to compare to
      返回:
      true if all members are in the target