Package org.keycloak.storage.federated
Interface UserRoleMappingsFederatedStorage
- All Known Subinterfaces:
UserFederatedStorageProvider,UserFederatedStorageProvider.Streams,UserRoleMappingsFederatedStorage.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
public interface UserRoleMappingsFederatedStorage
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.This interface is no longer necessary; collection-based methods were removed from the parent interface and therefore the parent interface can be used directly -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRoleMapping(RealmModel realm, String userId, RoleModel role) getRoleMappingsStream(RealmModel realm, String userId) Obtains the roles associated with the federated user identified byuserId.voidgrantRole(RealmModel realm, String userId, RoleModel role)
-
Method Details
-
grantRole
-
getRoleMappingsStream
Obtains the roles associated with the federated user identified byuserId.- Parameters:
realm- a reference to the realm.userId- the user identifier.- Returns:
- a non-null
Streamof roles.
-
deleteRoleMapping
-