接口 SecurityManager

    • 方法详细资料

      • getConcurrentSecurity

        ConcurrentSecurity getConcurrentSecurity()
        获取 当前登录用户以及安全权限
        返回:
      • hasMatch

        boolean hasMatch​(String source,
                         String compare)
        是否匹配
        参数:
        source - 源
        compare - 匹配对象
        返回:
      • hasMatch

        boolean hasMatch​(String[] source,
                         String compare)
        是否匹配
        参数:
        source - 匹配源
        compare - 匹配对象
        返回:
      • tokenFailure

        void tokenFailure​(List<String> failureTokens,
                          Long time)
        过期的token
        参数:
        failureTokens - 过期的token
        time - 过期 的时间 如果在这个时间内有访问则代表未过去需要更新token的时间如果没有访问则删除token 同时删除缓存中的token 信息
      • removeToken

        boolean removeToken​(String token)
        删除掉一个token
        参数:
        token -
        返回:
      • getConcurrentIp

        String getConcurrentIp()
        获取当前ip
        返回: