|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gigaspaces.security.authorities.SpaceAuthority
public class SpaceAuthority
Defines an Authority for operating on Space (stored) data, with the specified privilege.
The SpaceAuthrotiys' Authority.getAuthority() String representation format:
SpacePrivilege privilege-value [filter]
Where:
privilege-value = WRITE | READ | TAKE | EXECUTE | ALTER
filter = RegexFilter regex |
NegateRegexFilter regex |
ClassFilter class-name |
NegateClassFilter class-name |
PackageFilter package-name |
NegatePackageFilter package-name
The privileges represent the following space operations:
WRITE - write and update operations
READ - read operations, count, notify
TAKE - take operations, clear
EXECUTE - execute tasks
ALTER - clean, drop-class
| Nested Class Summary | |
|---|---|
static class |
SpaceAuthority.ClassFilter
Class filter accepting only the defined class-name. |
static interface |
SpaceAuthority.Filter<T>
interface for data access filtering. |
static class |
SpaceAuthority.NegateClassFilter
Class filter accepting only classes not of the defined class-name. |
static interface |
SpaceAuthority.NegateFilter<T>
interface for restrictive data access filtering. |
static class |
SpaceAuthority.NegatePackageFilter
Package filter accepting only packages not of the defined package. |
static class |
SpaceAuthority.NegateRegexFilter
Negate a regular expression filter. |
static class |
SpaceAuthority.PackageFilter
Package filter accepting only the defined package |
static class |
SpaceAuthority.RegexFilter
Regular expression filter, using a regular expression as a pattern of characters that describes a set of strings. |
static class |
SpaceAuthority.SpacePrivilege
Defines operation privileges |
static class |
SpaceAuthority.WildcardExpressionToFilterConverter
Convert a wildcard expression to a filter instance. |
| Constructor Summary | |
|---|---|
SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege)
An authority with the specified privilege. |
|
SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege,
SpaceAuthority.Filter filter)
An authority with the specified privilege. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getAuthority()
An Authority that can be represented as a String which is
sufficient in precision to be relied upon for an access control decisions. |
SpaceAuthority.Filter |
getFilter()
|
Privilege |
getPrivilege()
A granted privilege associated with this Authority. |
int |
hashCode()
|
String |
toString()
|
static SpaceAuthority |
valueOf(String authority)
Parses the getAuthority() string representation of an Authority. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege)
spacePrivilege - a granted authority.
public SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege,
SpaceAuthority.Filter filter)
spacePrivilege - granted privilegefilter - a filter on the specified privilege.| Method Detail |
|---|
public static SpaceAuthority valueOf(String authority)
getAuthority() string representation of an Authority.
authority - the authority string to parse.
public String getAuthority()
AuthorityAuthority that can be represented as a String which is
sufficient in precision to be relied upon for an access control decisions.
getAuthority in interface AuthorityString with
sufficient precision).public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic SpaceAuthority.Filter getFilter()
public Privilege getPrivilege()
InternalAuthority
getPrivilege in interface InternalAuthority
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||