| Package | Description |
|---|---|
| com.holonplatform.auth | |
| com.holonplatform.spring.security |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Authorizer<P extends Permission>
An Authorizer is responsible for
Authentication authorization control using
Authentication.getPermissions() permissions. |
| Modifier and Type | Method and Description |
|---|---|
<P extends Permission> |
Realm.addAuthorizer(Authorizer<P> authorizer)
Add and
Authorizer to support a specific Permission type |
default <P extends Permission> |
Realm.Builder.authorizer(Authorizer<P> authorizer)
Deprecated.
|
<P extends Permission> |
Realm.Builder.withAuthorizer(Authorizer<P> authorizer)
Register given
Authorizer in Realm. |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
Permission.create(String permission)
Create a default Permission implementation, using given
permission String to represent permission
authority. |
| Modifier and Type | Method and Description |
|---|---|
static Authorizer<Permission> |
Authorizer.create()
Create a default Authorizer.
|
Collection<Permission> |
Authentication.getPermissions()
Set of
Permissions granted to principal with this Authentication |
Collection<Permission> |
Account.getPermissions()
Optional permissions granted to account
|
| Modifier and Type | Method and Description |
|---|---|
default <T extends P> |
Authorizer.isPermitted(Authentication authentication,
T... permissions)
Check if given Authentication has all the specified permission/s.
|
default boolean |
AuthenticationInspector.isPermitted(Permission... permissions)
Checks if the current
Authentication has all the specified Permissions. |
default <T extends P> |
Authorizer.isPermittedAny(Authentication authentication,
T... permissions)
Check if given Authentication has any of the specified permission/s.
|
default boolean |
AuthenticationInspector.isPermittedAny(Permission... permissions)
Checks if the current
Authentication has any of the specified Permission. |
default Authentication.Builder |
Authentication.Builder.permission(Permission permission)
Deprecated.
|
default Account.Builder |
Account.Builder.permission(Permission permission)
Deprecated.
|
Authentication.Builder |
Authentication.Builder.withPermission(Permission permission)
Add a permission granted to Authentication
|
Account.Builder |
Account.Builder.withPermission(Permission permission)
Add a permission granted to Account
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AuthenticationInspector.isPermitted(Collection<? extends Permission> permissions)
Checks if the current
Authentication has all the specified Permissions. |
boolean |
AuthenticationInspector.isPermittedAny(Collection<? extends Permission> permissions)
Checks if the current
Authentication has any of the specified Permission. |
Account.Builder |
Account.Builder.permissions(Collection<Permission> permissions)
Set permissions granted to Account.
|
boolean |
Realm.supportsPermission(Class<? extends Permission> permissionType)
Returns whether this Realm supports given
Permission type |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
SpringSecurity.asPermission(org.springframework.security.core.GrantedAuthority authority)
Get the
Permission representation of the given Spring Security GrantedAuthority. |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.security.core.GrantedAuthority |
SpringSecurity.asAuthority(Permission permission)
Get the Spring Security
GrantedAuthority representation of the given Permission. |
Copyright © 2019 The Holon Platform. All rights reserved.