| 程序包 | 说明 |
|---|---|
| org.noear.solon.auth | |
| org.noear.solon.auth.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthRule |
AuthRule.exclude(String path)
排除
|
AuthRule |
AuthRule.failure(AuthFailureHandler handler)
失败事件
|
AuthRule |
AuthRule.include(String path)
包函
|
AuthRule |
AuthRule.verifyIp()
验证Ip
|
AuthRule |
AuthRule.verifyLogined()
验证登录状态
|
AuthRule |
AuthRule.verifyPath()
验证路径
|
AuthRule |
AuthRule.verifyPermissions(String... permissions)
验证权限
|
AuthRule |
AuthRule.verifyPermissionsAnd(String... permissions)
验证权限(并且关系)
|
AuthRule |
AuthRule.verifyRoles(String... roles)
验证角色
|
AuthRule |
AuthRule.verifyRolesAnd(String... roles)
验证角色(并且关系)
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AuthRuleHandler.addRule(AuthRule rule) |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthAdapter |
AuthAdapter.addRule(Consumer<AuthRule> builder)
添加一个授权规则
|
AuthAdapter |
AuthAdapter.addRules(Collection<AuthRule> rules)
添加一批授权规则(构建规则)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AuthRuleImpl
授权规则默认实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
AuthRule |
AuthRuleImpl.exclude(String pattern) |
AuthRule |
AuthRuleImpl.failure(AuthFailureHandler handler) |
AuthRule |
AuthRuleImpl.include(String pattern) |
AuthRule |
AuthRuleImpl.verifyIp() |
AuthRule |
AuthRuleImpl.verifyLogined() |
AuthRule |
AuthRuleImpl.verifyPath() |
AuthRule |
AuthRuleImpl.verifyPermissions(String... permissions) |
AuthRule |
AuthRuleImpl.verifyPermissionsAnd(String... permissions) |
AuthRule |
AuthRuleImpl.verifyRoles(String... roles) |
AuthRule |
AuthRuleImpl.verifyRolesAnd(String... roles) |
Copyright © 2023. All rights reserved.