Class SpaceAuthority
java.lang.Object
com.gigaspaces.security.authorities.SpaceAuthority
- All Implemented Interfaces:
InternalAuthority,Authority,Serializable
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 | CREATE | 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, this grants CREATE privilege as well.
CREATE - write only operations
READ - read operations, count, notify
TAKE - take operations, clear
EXECUTE - execute tasks
ALTER - clean, drop-class
- Since:
- 7.0.1
- Author:
- Moran Avigdor
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass filter accepting only the defined class-name.static interfaceinterface for data access filtering.static final classClass filter accepting only classes not of the defined class-name.static interfaceinterface for restrictive data access filtering.static final classPackage filter accepting only packages not of the defined package.static final classNegate a regular expression filter.static classPackage filter accepting only the defined packagestatic classRegular expression filter, using a regular expression as a pattern of characters that describes a set of strings.static classstatic enumDefines operation privilegesstatic classConvert a wildcard expression to a filter instance. -
Constructor Summary
ConstructorsConstructorDescriptionSpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege) An authority with the specified privilege.SpaceAuthority(SpaceAuthority.SpacePrivilege spacePrivilege, SpaceAuthority.Filter filter) An authority with the specified privilege. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnAuthoritythat can be represented as aStringwhich is sufficient in precision to be relied upon for an access control decisions.A granted privilege associated with this Authority.inthashCode()toString()static SpaceAuthorityParses thegetAuthority()string representation of an Authority.
-
Constructor Details
-
SpaceAuthority
An authority with the specified privilege.- Parameters:
spacePrivilege- a granted authority.
-
SpaceAuthority
An authority with the specified privilege.- Parameters:
spacePrivilege- granted privilegefilter- a filter on the specified privilege.
-
-
Method Details
-
valueOf
Parses thegetAuthority()string representation of an Authority.- Parameters:
authority- the authority string to parse.- Returns:
- an instance of the authority represented by the authority string.
-
getAuthority
Description copied from interface:AuthorityAnAuthoritythat can be represented as aStringwhich is sufficient in precision to be relied upon for an access control decisions.- Specified by:
getAuthorityin interfaceAuthority- Returns:
- a representation of the granted authority (expressed as a
Stringwith sufficient precision).
-
toString
-
hashCode
public int hashCode() -
equals
-
getFilter
-
getPrivilege
Description copied from interface:InternalAuthorityA granted privilege associated with this Authority.- Specified by:
getPrivilegein interfaceInternalAuthority- Returns:
- a granted privilege.
-