Class RoleAuthority
java.lang.Object
com.gigaspaces.security.authorities.RoleAuthority
- All Implemented Interfaces:
Authority,Serializable
- Direct Known Subclasses:
PopulatedRoleAuthority
Defines an association of a role by-name.
The RoleAuthoritys' Authority.getAuthority() String representation format:
RolePrivilege role
Where:
role = role-name
- Since:
- 7.0
- Author:
- Moran Avigdor
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEmpty placeholder for Role privilege (part of authority format) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnAuthoritythat can be represented as aStringwhich is sufficient in precision to be relied upon for an access control decisions.getRole()toString()static RoleAuthorityParses thegetAuthority()string representation of an Authority.
-
Constructor Details
-
RoleAuthority
A role authority with a specified role name.- Parameters:
role- The role name.
-
-
Method Details
-
valueOf
Parses thegetAuthority()string representation of an Authority.- Parameters:
authority- The role authority to be parsed.- 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
-
getRole
-