public class SimpleAuthentication extends Object implements Authentication
| Constructor and Description |
|---|
SimpleAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
copy(BiPredicate<Permission,String> permissionFilter,
Predicate<Dimension> dimension)
copy为新的权限信息
|
<T extends Serializable> |
getAttribute(String name)
根据属性名获取属性值,返回一个
Optional对象。此方法可用于获取自定义的属性信息 |
Map<String,Serializable> |
getAttributes() |
SimpleAuthentication |
merge(Authentication authentication)
合并权限
|
static Authentication |
of() |
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 in interface AuthenticationT - 属性值类型name - 属性名public Map<String,Serializable> getAttributes()
getAttributes in interface Authenticationpublic SimpleAuthentication merge(Authentication authentication)
Authenticationmerge in interface Authenticationauthentication - 源权限信息public Authentication copy(BiPredicate<Permission,String> permissionFilter, Predicate<Dimension> dimension)
Authenticationcopy in interface AuthenticationpermissionFilter - 权限过滤dimension - 维度过滤Copyright © 2016–2021. All rights reserved.