public interface PrincipalSetPolicy extends AccessControlPolicy
AccessControlPolicy
intended to grant a set of Principal
s the ability to perform certain
actions. The scope of this policy (and thus the affected items) is an
implementation detail; it may e.g. take effect on the tree defined by the
Node
, where a given PrincipalSetPolicy
is being
applied.
The very details on what actions are granted by a given PrincipalSetPolicy
remains an implementation detail. Similarly a given permission model is
in charge of defining the interactions and effects different
policies
will have if used together in the same
repository.
Modifier and Type | Method and Description |
---|---|
boolean |
addPrincipals(java.security.Principal... principals)
Add
Principal s that are allowed to perform some implementation
specific actions on those items where this policy takes effect. |
@NotNull java.util.Set<java.security.Principal> |
getPrincipals()
Returns the set of
Principal s that are allowed to perform
implementation specific actions on the items affected by this policy. |
boolean |
removePrincipals(java.security.Principal... principals)
Remove the specified
Principal s for the set of allowed principals
thus revoking their ability to perform the implementation specific actions
on items where this policy takes effect. |
@NotNull @NotNull java.util.Set<java.security.Principal> getPrincipals()
Principal
s that are allowed to perform
implementation specific actions on the items affected by this policy.Principal
s that are allowed to perform
implementation specific actions on the those items where this policy
takes effect.boolean addPrincipals(@NotNull java.security.Principal... principals) throws AccessControlException
Principal
s that are allowed to perform some implementation
specific actions on those items where this policy takes effect.principals
- The Principal
s that are granted access.true
if this policy was modified; false
otherwise.AccessControlException
- If any of the specified
principals is considered invalid or if another access control specific
error occurs.boolean removePrincipals(@NotNull java.security.Principal... principals) throws AccessControlException
Principal
s for the set of allowed principals
thus revoking their ability to perform the implementation specific actions
on items where this policy takes effect.principals
- The Principal
s for which access should be revoked.true
if this policy was modified; false
otherwise.AccessControlException
- If any of the specified
principals is considered invalid or if another access control specific
error occurs.Copyright © 2010 - 2020 Adobe. All Rights Reserved