public class FormLoginAuthorizeProvider extends Object implements AuthorizeProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.security.web.authentication.AuthenticationFailureHandler |
formAuthenticationFailureHandler
自定义认证失败处理器
|
protected org.springframework.security.web.authentication.AuthenticationSuccessHandler |
formAuthenticationSuccessHandler
自定义认证成功处理器
|
| Constructor and Description |
|---|
FormLoginAuthorizeProvider() |
| 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 |
getFormAuthenticationFailureHandler() |
org.springframework.security.web.authentication.AuthenticationSuccessHandler |
getFormAuthenticationSuccessHandler() |
int |
getOrder()
授权提供器的顺序,数字越小越是提前使用,默认值为100
|
void |
setFormAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler formAuthenticationFailureHandler) |
void |
setFormAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler formAuthenticationSuccessHandler) |
protected org.springframework.security.web.authentication.AuthenticationSuccessHandler formAuthenticationSuccessHandler
protected org.springframework.security.web.authentication.AuthenticationFailureHandler formAuthenticationFailureHandler
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.AuthenticationSuccessHandler getFormAuthenticationSuccessHandler()
public void setFormAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler formAuthenticationSuccessHandler)
public org.springframework.security.web.authentication.AuthenticationFailureHandler getFormAuthenticationFailureHandler()
public void setFormAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler formAuthenticationFailureHandler)
Copyright © 2021. All rights reserved.