Class KeycloakRole
- java.lang.Object
-
- org.keycloak.adapters.springsecurity.account.KeycloakRole
-
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.GrantedAuthority
public class KeycloakRole extends Object implements org.springframework.security.core.GrantedAuthority
Represents an authority granted to anAuthentication
by the Keycloak server.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeycloakRole(String role)
Creates a new granted authority from the given Keycloak role.
-
-
-
Constructor Detail
-
KeycloakRole
public KeycloakRole(String role)
Creates a new granted authority from the given Keycloak role.- Parameters:
role
- the name of this granted authority
-
-
Method Detail
-
getAuthority
public String getAuthority()
- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
-
-