| Package | Description |
|---|---|
| org.osgl.aaa | |
| org.osgl.aaa.impl |
| Modifier and Type | Field and Description |
|---|---|
static org.osgl.Lang.F1<Role,org.osgl.util.C.List<Permission>> |
Role.F.PERMISSION_GETTER |
static org.osgl.Lang.F1<Principal,org.osgl.util.C.List<Role>> |
Principal.F.ROLE_GETTER |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<Role> |
AAA.allRoles()
Returns all
roles |
Iterable<Role> |
AAAContext.allRoles()
Returns all
roles |
Iterable<Role> |
AAAPersistentService.allRoles()
Returns all
roles |
List<Role> |
Principal.getRoles()
Returns roles granted to the principal
|
Collection<Role> |
AuthorizationService.getRoles(Principal principal,
AAAContext context)
|
static org.osgl.Lang.Visitor<Role> |
Role.F.permissionVisitor(org.osgl.Lang.Visitor<Permission> visitor) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Permission> |
AuthorizationService.getPermissions(Role role,
AAAContext context)
Returns all
permissions of a Role role |
| Modifier and Type | Method and Description |
|---|---|
static org.osgl.Lang.Visitor<Principal> |
Principal.F.roleVisitor(org.osgl.Lang.Visitor<Role> visitor) |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleRole
A simple and immutable
Privilege implementation. |
| Modifier and Type | Method and Description |
|---|---|
Role |
SimpleRole.Builder.toRole() |
| Modifier and Type | Method and Description |
|---|---|
org.osgl.util.C.List<Role> |
SimplePrincipal.getRoles() |
Collection<Role> |
SimpleAuthorizationService.getRoles(Principal principal,
AAAContext context) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Permission> |
SimpleAuthorizationService.getPermissions(Role role,
AAAContext context) |
SimplePrincipal.Builder |
SimplePrincipal.Builder.grantRole(Role role) |
| Constructor and Description |
|---|
SimplePrincipal(String name,
Privilege privilege,
Collection<? extends Role> roles,
Collection<? extends Permission> perms)
Construct a principal by name, privilege, list of roles and list of permissions
|
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.