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 an
Authentication
by the Keycloak server.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
- See Also:
-
Constructor Summary
ConstructorDescriptionKeycloakRole
(String role) Creates a new granted authority from the given Keycloak role. -
Method Summary
-
Constructor Details
-
KeycloakRole
Creates a new granted authority from the given Keycloak role.- Parameters:
role
- the name of this granted authority
-
-
Method Details