Class AuthScopeUtils

java.lang.Object
me.zhyd.oauth.utils.AuthScopeUtils

public class AuthScopeUtils extends Object
Scope 工具类,提供对 scope 类的统一操作
Since:
1.15.7
Version:
1.0.0
Author:
yadong.zhang (yadong.zhang0415(a)gmail.com)
  • Constructor Details

    • AuthScopeUtils

      public AuthScopeUtils()
  • Method Details

    • getDefaultScopes

      public static List<String> getDefaultScopes(AuthScope[] scopes)
      获取 AuthScope 数组中所有的被标记为 default 的 scope
      Parameters:
      scopes - scopes
      Returns:
      List
    • getScopes

      public static List<String> getScopes(AuthScope... scopes)
      AuthScope 数组中获取实际的 scope 字符串
      Parameters:
      scopes - 可变参数,支持传任意 AuthScope
      Returns:
      List