Class RoleGrantedAuthority
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.RoleGrantedAuthority
-
- All Implemented Interfaces:
GrantedAuthority
public class RoleGrantedAuthority extends Object implements GrantedAuthority
-
-
Constructor Summary
Constructors Constructor Description RoleGrantedAuthority(String role)
Creates a newRoleGrantedAuthority
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
get()
Gets the string representation of thisGrantedAuthority
.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
RoleGrantedAuthority
public RoleGrantedAuthority(String role)
Creates a newRoleGrantedAuthority
instance.- Parameters:
role
- the name of the granted role.
-
-
Method Detail
-
get
public String get()
Gets the string representation of thisGrantedAuthority
.- Specified by:
get
in interfaceGrantedAuthority
- Returns:
- the string authority.
-
-