接口 AuthManager


  • public interface AuthManager
    Access control entry. Can be extended by 3rd party implementations.
    从以下版本开始:
    1.2.0
    作者:
    nkorange, mai.jh
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void auth​(Permission permission, User user)
      Authorization of request, constituted with resource and user.
      User login​(java.lang.Object request)
      Authentication of request, identify the user who request the resource.
      User loginRemote​(java.lang.Object request)
      Authentication of request, identify the user who request the resource.
    • 方法详细资料

      • login

        User login​(java.lang.Object request)
            throws AccessException
        Authentication of request, identify the user who request the resource.
        参数:
        request - where we can find the user information
        返回:
        user related to this request, null if no user info is found.
        抛出:
        AccessException - if authentication is failed
      • loginRemote

        User loginRemote​(java.lang.Object request)
                  throws AccessException
        Authentication of request, identify the user who request the resource.
        参数:
        request - where we can find the user information
        返回:
        user related to this request, null if no user info is found.
        抛出:
        AccessException - if authentication is failed
      • auth

        void auth​(Permission permission,
                  User user)
           throws AccessException
        Authorization of request, constituted with resource and user.
        参数:
        permission - permission to auth
        user - user who wants to access the resource.
        抛出:
        AccessException - if authorization is failed