public interface MultiAuthentication extends Authentication
Authentication的方法为获取当前激活用户的权限| 限定符和类型 | 方法和说明 |
|---|---|
Authentication |
activate(String userId)
激活指定的用户
|
void |
addAuthentication(Authentication authentication)
添加一个授权
|
Set<Authentication> |
getAuthentications() |
current, getAttribute, getAttributes, getPermission, getPermissions, getRole, getRoles, getUser, hasPermission, hasRole, removeAttributes, setAttribute, setAttributesSet<Authentication> getAuthentications()
Authentication activate(String userId)
userId - 用户IDvoid addAuthentication(Authentication authentication)
authentication - 授权信息Copyright © 2018. All rights reserved.