public class ExceptionAuthorizeProvider extends Object implements AuthorizeProvider
Constructor and Description |
---|
ExceptionAuthorizeProvider() |
ExceptionAuthorizeProvider(org.springframework.security.web.AuthenticationEntryPoint exceptionAuthenticationEntryPoint,
org.springframework.security.web.access.AccessDeniedHandler customAccessDeniedHandler) |
Modifier and Type | Method and Description |
---|---|
void |
config(PropertyResource propertyResource,
org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry expressionInterceptUrlRegistry)
授权配置
|
org.springframework.security.web.access.AccessDeniedHandler |
getCustomAccessDeniedHandler() |
org.springframework.security.web.AuthenticationEntryPoint |
getExceptionAuthenticationEntryPoint() |
int |
getOrder()
授权提供器的顺序,数字越小越是提前使用,默认值为100
|
void |
setCustomAccessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler customAccessDeniedHandler) |
void |
setExceptionAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint exceptionAuthenticationEntryPoint) |
public ExceptionAuthorizeProvider(org.springframework.security.web.AuthenticationEntryPoint exceptionAuthenticationEntryPoint, org.springframework.security.web.access.AccessDeniedHandler customAccessDeniedHandler)
public ExceptionAuthorizeProvider()
public void config(PropertyResource propertyResource, org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry expressionInterceptUrlRegistry) throws Exception
AuthorizeProvider
config
in interface AuthorizeProvider
propertyResource
- 授权资源expressionInterceptUrlRegistry
- 注册器Exception
- 配置时出现问题public int getOrder()
AuthorizeProvider
getOrder
in interface AuthorizeProvider
public org.springframework.security.web.AuthenticationEntryPoint getExceptionAuthenticationEntryPoint()
public void setExceptionAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint exceptionAuthenticationEntryPoint)
public org.springframework.security.web.access.AccessDeniedHandler getCustomAccessDeniedHandler()
public void setCustomAccessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler customAccessDeniedHandler)
Copyright © 2021. All rights reserved.