public interface AuthManager
| 限定符和类型 | 方法和说明 |
|---|---|
void |
auth(Permission permission,
User user)
Authorization of request, constituted with resource and user.
|
User |
login(Object request)
Authentication of request, identify the user who request the resource.
|
User |
loginRemote(Object request)
Authentication of request, identify the user who request the resource.
|
User login(Object request) throws AccessException
request - where we can find the user informationAccessException - if authentication is failedUser loginRemote(Object request) throws AccessException
request - where we can find the user informationAccessException - if authentication is failedvoid auth(Permission permission, User user) throws AccessException
permission - permission to authuser - user who wants to access the resource.AccessException - if authorization is failedCopyright © 2018–2022 Alibaba Group. All rights reserved.