跳过导航链接
A B C G H J M P R S U V 

A

add(HttpMethod, String, String) - 类 中的方法com.github.zj.dreamly.simple.security.spec.SpecRegistry
 
addInterceptors(InterceptorRegistry) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityAutoConfiguration
添加拦截器 注:这里之所以不将配置中anon()的路径添加到excludePathPatterns,是因为如下场景下发生异常难以定位: GET /login anon() ANY /** hasLogin() 然后访问/login报异常了,Spring Boot会重定向到/error,而此时并未配置/error的访问规则 于是命中到/**,于是报没有添加header的异常。
anon() - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
匿名即可访问
AuthInfo - com.github.zj.dreamly.simple.security.jwt中的类
 
AuthInfo() - 类 的构造器com.github.zj.dreamly.simple.security.jwt.AuthInfo
 
AuthInterceptor - com.github.zj.dreamly.simple.security.interceptor中的类
授权控制拦截器
AuthInterceptor() - 类 的构造器com.github.zj.dreamly.simple.security.interceptor.AuthInterceptor
 
AUTHORIZATION_HEADER - 接口 中的静态变量com.github.zj.dreamly.simple.security.constants.ConstantsSecurity
请求头

B

BEARER - 接口 中的静态变量com.github.zj.dreamly.simple.security.constants.ConstantsSecurity
Bearer header

C

check(EvaluationContext, String) - 类 中的静态方法com.github.zj.dreamly.simple.security.util.SpringElCheckUtil
校验expression是否能通过rootObject的检测
com.github.zj.dreamly.simple.security.annotation - 程序包 com.github.zj.dreamly.simple.security.annotation
 
com.github.zj.dreamly.simple.security.annotation.support - 程序包 com.github.zj.dreamly.simple.security.annotation.support
 
com.github.zj.dreamly.simple.security.constants - 程序包 com.github.zj.dreamly.simple.security.constants
 
com.github.zj.dreamly.simple.security.el - 程序包 com.github.zj.dreamly.simple.security.el
 
com.github.zj.dreamly.simple.security.enums - 程序包 com.github.zj.dreamly.simple.security.enums
 
com.github.zj.dreamly.simple.security.interceptor - 程序包 com.github.zj.dreamly.simple.security.interceptor
 
com.github.zj.dreamly.simple.security.jwt - 程序包 com.github.zj.dreamly.simple.security.jwt
 
com.github.zj.dreamly.simple.security.security - 程序包 com.github.zj.dreamly.simple.security.security
 
com.github.zj.dreamly.simple.security.spec - 程序包 com.github.zj.dreamly.simple.security.spec
 
com.github.zj.dreamly.simple.security.util - 程序包 com.github.zj.dreamly.simple.security.util
 
ConstantsSecurity - com.github.zj.dreamly.simple.security.constants中的接口
常量

G

generateToken(JwtUser) - 类 中的方法com.github.zj.dreamly.simple.security.jwt.JwtOperator
为指定用户生成token
getClaimsFromToken(String) - 类 中的方法com.github.zj.dreamly.simple.security.jwt.JwtOperator
从token中获取claim
getExpirationDateFromToken(String) - 类 中的方法com.github.zj.dreamly.simple.security.jwt.JwtOperator
获取token的过期时间
getUser() - 类 中的方法com.github.zj.dreamly.simple.security.jwt.JwtUserOperator
获取当前登录用户信息

H

hasAllRoles(String...) - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
拥有所有指定角色才能访问
hasAnyRoles(String...) - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
拥有指定角色之一即可访问
hasLogin() - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
登录才能访问
hasPermission(String) - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
拥有指定权限即可访问
hasRole(String) - 类 中的方法com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
拥有指定角色才能访问
HttpMethod - com.github.zj.dreamly.simple.security.enums中的枚举
http请求方法枚举

J

Jwt() - 类 的构造器com.github.zj.dreamly.simple.security.security.SecurityProperties.Jwt
 
JwtOperator - com.github.zj.dreamly.simple.security.jwt中的类
 
JwtOperator() - 类 的构造器com.github.zj.dreamly.simple.security.jwt.JwtOperator
 
jwtOperator(SecurityProperties) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
JwtUser - com.github.zj.dreamly.simple.security.jwt中的类
 
JwtUser() - 类 的构造器com.github.zj.dreamly.simple.security.jwt.JwtUser
 
JwtUserOperator - com.github.zj.dreamly.simple.security.jwt中的类
 
JwtUserOperator() - 类 的构造器com.github.zj.dreamly.simple.security.jwt.JwtUserOperator
 

M

match(HttpServletRequest, HttpMethod, String) - 类 中的静态方法com.github.zj.dreamly.simple.security.util.RestfulMatchUtil
判断request使用的请求方法与httpMethod一致且请求的路径与pattern一致 参考了spring-security中org.springframework.security.web.util.matcher.AntPathRequestMatcher#matches(javax.servlet.http.HttpServletRequest)的写法

P

PERMISSIONS - 类 中的静态变量com.github.zj.dreamly.simple.security.jwt.JwtOperator
 
preAuth(ProceedingJoinPoint) - 类 中的方法com.github.zj.dreamly.simple.security.annotation.support.PreAuthorizeAspect
 
PreAuthorize - com.github.zj.dreamly.simple.security.annotation中的注释类型
用于认证、鉴权的注解
PreAuthorizeAspect - com.github.zj.dreamly.simple.security.annotation.support中的类
处理PreAuthorize注解的切面
PreAuthorizeAspect() - 类 的构造器com.github.zj.dreamly.simple.security.annotation.support.PreAuthorizeAspect
 
preAuthorizeAspect(PreAuthorizeExpressionRoot) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
PreAuthorizeExpressionRoot - com.github.zj.dreamly.simple.security.el中的类
 
PreAuthorizeExpressionRoot() - 类 的构造器com.github.zj.dreamly.simple.security.el.PreAuthorizeExpressionRoot
 
preAuthorizeExpressionRoot(JwtUserOperator) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
preHandle(HttpServletRequest, HttpServletResponse, Object) - 类 中的方法com.github.zj.dreamly.simple.security.interceptor.AuthInterceptor
 

R

RestfulMatchUtil - com.github.zj.dreamly.simple.security.util中的类
 
RestfulMatchUtil() - 类 的构造器com.github.zj.dreamly.simple.security.util.RestfulMatchUtil
 
ROLES - 类 中的静态变量com.github.zj.dreamly.simple.security.jwt.JwtOperator
 

S

SecurityAutoConfiguration - com.github.zj.dreamly.simple.security.security中的类
自动配置类
SecurityAutoConfiguration() - 类 的构造器com.github.zj.dreamly.simple.security.security.SecurityAutoConfiguration
 
SecurityConfiguration - com.github.zj.dreamly.simple.security.security中的类
配置类
SecurityConfiguration() - 类 的构造器com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
SecurityProperties - com.github.zj.dreamly.simple.security.security中的类
配置属性
SecurityProperties() - 类 的构造器com.github.zj.dreamly.simple.security.security.SecurityProperties
 
SecurityProperties.Jwt - com.github.zj.dreamly.simple.security.security中的类
 
Spec - com.github.zj.dreamly.simple.security.spec中的类
 
Spec() - 类 的构造器com.github.zj.dreamly.simple.security.spec.Spec
 
specListFromProperties(SecurityProperties) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
specListFromSpecRegistry(SpecRegistry) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 
SpecRegistry - com.github.zj.dreamly.simple.security.spec中的类
 
SpecRegistry() - 类 的构造器com.github.zj.dreamly.simple.security.spec.SpecRegistry
 
SpringElCheckUtil - com.github.zj.dreamly.simple.security.util中的类
 
SpringElCheckUtil() - 类 的构造器com.github.zj.dreamly.simple.security.util.SpringElCheckUtil
 

U

USER_ID - 类 中的静态变量com.github.zj.dreamly.simple.security.jwt.JwtOperator
 
USERNAME - 类 中的静态变量com.github.zj.dreamly.simple.security.jwt.JwtOperator
 
userOperator(JwtOperator) - 类 中的方法com.github.zj.dreamly.simple.security.security.SecurityConfiguration
 

V

validateToken(String) - 类 中的方法com.github.zj.dreamly.simple.security.jwt.JwtOperator
判断token是否非法
valueOf(String) - 枚举 中的静态方法com.github.zj.dreamly.simple.security.enums.HttpMethod
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法com.github.zj.dreamly.simple.security.enums.HttpMethod
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
A B C G H J M P R S U V 
跳过导航链接

Copyright © 2019. All rights reserved.