Class CurrentUserContext
java.lang.Object
com.elitesland.ystdms.sys.security.CurrentUserContext
基于 SecurityContextHolder 和自定义 SecurityContext 的统一用户上下文
负责聚合:JWT 基本信息、组织/公司信息、角色与权限等。
业务域可以通过 extras 或基于 Builder 的扩展,在不修改该类的情况下增加自己的上下文字段。
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CurrentUserContext.Builderbuilder()static CurrentUserContext从当前线程的 SecurityContext / 自定义 SecurityContext 构建完整用户上下文。 如果未认证,返回 null。<T> T
-
Method Details
-
getAuthorities
-
getCompanies
-
getExtra
-
getAllExtras
-
toBuilder
-
fromSecurityContext
从当前线程的 SecurityContext / 自定义 SecurityContext 构建完整用户上下文。 如果未认证,返回 null。 -
builder
-