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 Classes Modifier and Type Interface Description static interface
UserRoleMappingsFederatedStorage.Streams
TheUserRoleMappingsFederatedStorage.Streams
interface makes all collection-based methods inUserRoleMappingsFederatedStorage
default by providing implementations that delegate to theStream
-based variants instead of the other way around.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
deleteRoleMapping(RealmModel realm, String userId, RoleModel role)
Set<RoleModel>
getRoleMappings(RealmModel realm, String userId)
Deprecated.UsegetRoleMappingsStream
instead.default Stream<RoleModel>
getRoleMappingsStream(RealmModel realm, String userId)
Obtains the roles associated with the federated user identified byuserId
.void
grantRole(RealmModel realm, String userId, RoleModel role)
-
-
-
Method Detail
-
getRoleMappings
@Deprecated Set<RoleModel> getRoleMappings(RealmModel realm, String userId)
Deprecated.UsegetRoleMappingsStream
instead.
-
grantRole
void grantRole(RealmModel realm, String userId, RoleModel role)
-
getRoleMappingsStream
default Stream<RoleModel> getRoleMappingsStream(RealmModel realm, String userId)
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
Stream
of roles.
-
deleteRoleMapping
void deleteRoleMapping(RealmModel realm, String userId, RoleModel role)
-
-