Package com.avoka.fc.core.security
Class GroupGrantedAuthority
java.lang.Object
com.avoka.fc.core.security.GroupGrantedAuthority
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.GrantedAuthority
public class GroupGrantedAuthority
extends Object
implements org.springframework.security.core.GrantedAuthority
Provides an Group GrantedAuthority adaptor.
- Since:
- 3.6.0
- See Also:
-
Constructor Summary
ConstructorDescriptionGroupGrantedAuthority
(String groupName) Create a new GroupGrantedAuthority based on the given group name -
Method Summary
-
Constructor Details
-
GroupGrantedAuthority
Create a new GroupGrantedAuthority based on the given group name- Parameters:
groupName
- and group name
-
-
Method Details
-
getAuthority
Return a string representation of the group name- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
- Returns:
- the name of the group name
- See Also:
-
GrantedAuthority.getAuthority()
-
compareTo
Compares this GrantedAuthorityAdaptor with another for order- Parameters:
o
- another non-nullGrantedAuthority
- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
- See Also:
-
toString
Return the string representation of this object.
-