public class SessionAuthorizeProvider extends Object implements AuthorizeProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.security.web.authentication.AuthenticationFailureHandler |
customAuthenticationFailureHandler
自定义认证失败处理器
|
| Constructor and Description |
|---|
SessionAuthorizeProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
config(PropertyResource propertyResource,
org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry expressionInterceptUrlRegistry)
授权配置
|
org.springframework.security.web.authentication.AuthenticationFailureHandler |
getCustomAuthenticationFailureHandler() |
int |
getOrder()
授权提供器的顺序,数字越小越是提前使用,默认值为100
|
org.springframework.security.web.session.SessionInformationExpiredStrategy |
getSessionInformationExpiredStrategy() |
void |
setCustomAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler customAuthenticationFailureHandler) |
void |
setSessionInformationExpiredStrategy(org.springframework.security.web.session.SessionInformationExpiredStrategy sessionInformationExpiredStrategy) |
protected org.springframework.security.web.authentication.AuthenticationFailureHandler customAuthenticationFailureHandler
public void config(PropertyResource propertyResource, org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry expressionInterceptUrlRegistry) throws Exception
AuthorizeProviderconfig in interface AuthorizeProviderpropertyResource - 授权资源expressionInterceptUrlRegistry - 注册器Exception - 配置时出现问题public int getOrder()
AuthorizeProvidergetOrder in interface AuthorizeProviderpublic org.springframework.security.web.authentication.AuthenticationFailureHandler getCustomAuthenticationFailureHandler()
public void setCustomAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler customAuthenticationFailureHandler)
public org.springframework.security.web.session.SessionInformationExpiredStrategy getSessionInformationExpiredStrategy()
public void setSessionInformationExpiredStrategy(org.springframework.security.web.session.SessionInformationExpiredStrategy sessionInformationExpiredStrategy)
Copyright © 2021. All rights reserved.