| 程序包 | 说明 |
|---|---|
| org.hswebframework.web.authorization | |
| org.hswebframework.web.authorization.builder | |
| org.hswebframework.web.authorization.simple | |
| org.hswebframework.web.authorization.simple.builder |
| 限定符和类型 | 方法和说明 |
|---|---|
default Optional<Role> |
Authentication.getRole(String id)
根据id获取角色,角色不存在则返回null
|
List<Role> |
Authentication.getRoles() |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticationBuilder |
AuthenticationBuilder.role(List<Role> role) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleRole |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Role> |
SimpleAuthentication.getRoles() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SimpleAuthentication.setRoles(List<Role> roles) |
| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticationBuilder |
SimpleAuthenticationBuilder.role(List<Role> role) |
Copyright © 2016–2020. All rights reserved.