| 
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gigaspaces.security.authorities.GrantedAuthorities
public final class GrantedAuthorities
Encapsulates the authorities granted to a specific user, to ease access control and authorization decisions.
| Constructor Summary | |
|---|---|
GrantedAuthorities(Authority[] authorities)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
isGranted(Privilege privilege)
Evaluates to true if has been granted the required privilege, disregarding any
 classname filters of a SpaceAuthority. | 
 boolean | 
isGranted(Privilege privilege,
          Object object)
Evaluates to true if has been granted the required privileges to access the
 specified object. | 
 boolean | 
isUserInRole(String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role".  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GrantedAuthorities(Authority[] authorities)
| Method Detail | 
|---|
public boolean isGranted(Privilege privilege)
true if has been granted the required privilege, disregarding any
 classname filters of a SpaceAuthority.
privilege - the required privilege.
true if the required privilege was granted; false
         otherwise.
public boolean isGranted(Privilege privilege,
                         Object object)
true if has been granted the required privileges to access the
 specified object.
privilege - the required privilegeobject - the data object (can be null)
true if the required privilege to access the object was granted;
         false otherwise.public boolean isUserInRole(String role)
role - a String specifying the name of the role
  | 
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||