public class SimpleAuthentication extends Object implements Authentication
| 构造器和说明 |
|---|
SimpleAuthentication() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDimension(Dimension dimension) |
Authentication |
copy(java.util.function.BiPredicate<Permission,String> permissionFilter,
java.util.function.Predicate<Dimension> dimension)
copy为新的权限信息
|
<T extends Serializable> |
getAttribute(String name)
根据属性名获取属性值,返回一个
Optional对象。 |
Map<String,Serializable> |
getAttributes() |
SimpleAuthentication |
merge(Authentication authentication)
合并权限
|
static Authentication |
of() |
void |
setDimensions(List<Dimension> dimensions) |
void |
setUser(User user) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrent, currentReactive, getDimension, getDimension, getDimensions, getDimensions, getDimensions, getPermission, getPermissions, getUser, hasDimension, hasDimension, hasDimension, hasPermission, hasPermissionpublic static Authentication of()
public <T extends Serializable> Optional<T> getAttribute(String name)
AuthenticationOptional对象。getAttribute 在接口中 AuthenticationT - 属性值类型name - 属性名public Map<String,Serializable> getAttributes()
getAttributes 在接口中 Authenticationpublic SimpleAuthentication merge(Authentication authentication)
Authenticationmerge 在接口中 Authenticationauthentication - 源权限信息public Authentication copy(java.util.function.BiPredicate<Permission,String> permissionFilter, java.util.function.Predicate<Dimension> dimension)
Authenticationcopy 在接口中 AuthenticationpermissionFilter - 权限过滤dimension - 维度过滤public void setUser(User user)
public void addDimension(Dimension dimension)
Copyright © 2016–2023. All rights reserved.