| Modifier and Type | Method and Description |
|---|---|
Set<Permission> |
Hive.getPermissions(Principal principal)
Returns a set of
Permissions, contained within the principal. |
Set<Permission> |
BasicHive.getPermissions(Principal principal) |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicHive.addPermission(Principal principal,
Permission permission)
Adds a new permission to a principal.
|
protected Boolean |
SimpleCachingHive.cacheLookUp(Subject subject,
Permission permission) |
protected Boolean |
BasicHive.cacheLookUp(Subject subject,
Permission permission)
Allows subclasses to retrieve previously cached results and thus speed up the check.
|
protected void |
SimpleCachingHive.cacheResult(Subject subject,
Permission permission,
boolean result) |
protected void |
BasicHive.cacheResult(Subject subject,
Permission permission,
boolean result)
Allows subclasses to cache the result of a check and thus speed up this check the next time.
|
boolean |
Hive.containsPermission(Permission permission)
Checks if this hive contains exactly the permission.
|
boolean |
BasicHive.containsPermission(Permission permission) |
Set<Principal> |
Hive.getPrincipals(Permission permission)
Returns a set of
Principals, each containing this permission. |
Set<Principal> |
BasicHive.getPrincipals(Permission permission) |
boolean |
Hive.hasPermission(Subject subject,
Permission permission)
Checks if the subject has the exact permission, or if the permission is implied by any of the
subjects principals.
|
boolean |
BasicHive.hasPermission(Subject subject,
Permission permission) |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicHive.addPrincipal(Principal principal,
Collection<Permission> permissions)
Adds a new Principal to the hive.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
Permission.implies(Permission permission)
Check if this permission implies the specified permission.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ActionPermission
Base class for any Permission that uses actions.
|
class |
AllPermissions
Permission that implies all other permissions, when created with the "all" action.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AllPermissions.implies(Permission permission)
Implies every other permission, but the other way around is not necessarily true.
|
boolean |
ActionPermission.implies(Permission permission)
Performs a logical and to see if this permission has at least all the actions as the other
permission and thus if this permission implies the other permission.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PolicyFileHiveFactory.notifyPermission(int lineNr,
Principal principal,
Permission permission)
Notifies when a permission is added to a principal.
|
protected void |
PolicyFileHiveFactory.skipIllegalPermission(int lineNr,
Principal principal,
Permission permission)
Notifies of permissions located outside the { and }; block statements but after a valid
principal was found.
|
protected void |
PolicyFileHiveFactory.skipPermission(int lineNr,
Principal principal,
Permission permission)
Notifies of duplicate permissions for a principal.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PolicyFileHiveFactory.notifyPermission(int lineNr,
Class<? extends Permission> permissionClass,
Class<?>[] args)
Notifies when a Permission could not be created because no suitable constructor was found.
|
protected void |
PolicyFileHiveFactory.skipIllegalPrincipal(int lineNr,
Principal principal,
Set<Permission> permissions)
Notifies when a
Principal begins at an illegal place in the file. |
protected void |
PolicyFileHiveFactory.skipPermission(int lineNr,
Class<? extends Permission> permissionClass,
Object[] argValues,
Exception e)
Notified when a new instance of the permission could not be created.
|
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.