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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupGrantedAuthority(String groupName)
Create a new GroupGrantedAuthority based on the given group name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object o)
Compares this GrantedAuthorityAdaptor with another for orderString
getAuthority()
Return a string representation of the group nameString
toString()
Return the string representation of this object.
-
-
-
Constructor Detail
-
GroupGrantedAuthority
public GroupGrantedAuthority(String groupName)
Create a new GroupGrantedAuthority based on the given group name- Parameters:
groupName
- and group name
-
-
Method Detail
-
getAuthority
public String 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
public int compareTo(Object o)
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:
Comparable.compareTo(Object)
-
-