public class AuthAdapter
extends java.lang.Object
构造器和说明 |
---|
AuthAdapter() |
限定符和类型 | 方法和说明 |
---|---|
AuthAdapter |
addRule(java.util.function.Consumer<AuthRule> builder)
添加一个授权规则
|
AuthAdapter |
addRules(java.util.Collection<AuthRule> rules)
添加一批授权规则(构建规则)
|
AuthFailureHandler |
failure()
获取默认的验证出错处理
|
AuthAdapter |
failure(AuthFailureHandler handler)
设定默认的验证出错处理
|
java.lang.String |
loginUrl()
获取登录Url
|
AuthAdapter |
loginUrl(java.lang.String url)
设置登录Url
|
java.lang.String |
pathPrefix()
设置规则路径前缀
|
AuthAdapter |
pathPrefix(java.lang.String pathPrefix)
设置规则路径前缀(用于支持 AuthAdapterSupplier 的前缀特性)
|
AuthProcessor |
processor()
获取认证处理器
|
AuthAdapter |
processor(AuthProcessor processor)
设定认证处理器
|
public java.lang.String loginUrl()
public AuthAdapter loginUrl(java.lang.String url)
public AuthAdapter addRule(java.util.function.Consumer<AuthRule> builder)
builder
- 规则构建器public AuthAdapter addRules(java.util.Collection<AuthRule> rules)
rules
- 规则集合public java.lang.String pathPrefix()
public AuthAdapter pathPrefix(java.lang.String pathPrefix)
pathPrefix
- 路径前缀public AuthProcessor processor()
public AuthAdapter processor(AuthProcessor processor)
processor
- 认证处理器public AuthFailureHandler failure()
public AuthAdapter failure(AuthFailureHandler handler)