Package org.keycloak.storage.federated
Interface UserBrokerLinkFederatedStorage
-
- All Known Subinterfaces:
UserBrokerLinkFederatedStorage.Streams
,UserFederatedStorageProvider
,UserFederatedStorageProvider.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
public interface UserBrokerLinkFederatedStorage
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
UserBrokerLinkFederatedStorage.Streams
TheUserBrokerLinkFederatedStorage.Streams
interface makes all collection-based methods inUserBrokerLinkFederatedStorage
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
addFederatedIdentity(RealmModel realm, String userId, FederatedIdentityModel socialLink)
Set<FederatedIdentityModel>
getFederatedIdentities(String userId, RealmModel realm)
Deprecated.UsegetFederatedIdentitiesStream
instead.default Stream<FederatedIdentityModel>
getFederatedIdentitiesStream(String userId, RealmModel realm)
Obtains the identities of the federated user identified byuserId
.FederatedIdentityModel
getFederatedIdentity(String userId, String socialProvider, RealmModel realm)
String
getUserByFederatedIdentity(FederatedIdentityModel socialLink, RealmModel realm)
void
preRemove(RealmModel realm, IdentityProviderModel provider)
boolean
removeFederatedIdentity(RealmModel realm, String userId, String socialProvider)
void
updateFederatedIdentity(RealmModel realm, String userId, FederatedIdentityModel federatedIdentityModel)
-
-
-
Method Detail
-
getUserByFederatedIdentity
String getUserByFederatedIdentity(FederatedIdentityModel socialLink, RealmModel realm)
-
addFederatedIdentity
void addFederatedIdentity(RealmModel realm, String userId, FederatedIdentityModel socialLink)
-
removeFederatedIdentity
boolean removeFederatedIdentity(RealmModel realm, String userId, String socialProvider)
-
preRemove
void preRemove(RealmModel realm, IdentityProviderModel provider)
-
updateFederatedIdentity
void updateFederatedIdentity(RealmModel realm, String userId, FederatedIdentityModel federatedIdentityModel)
-
getFederatedIdentities
@Deprecated Set<FederatedIdentityModel> getFederatedIdentities(String userId, RealmModel realm)
Deprecated.UsegetFederatedIdentitiesStream
instead.
-
getFederatedIdentitiesStream
default Stream<FederatedIdentityModel> getFederatedIdentitiesStream(String userId, RealmModel realm)
Obtains the identities of the federated user identified byuserId
.- Parameters:
userId
- the user identifier.realm
- a reference to the realm.- Returns:
- a non-null
Stream
of federated identities associated with the user.
-
getFederatedIdentity
FederatedIdentityModel getFederatedIdentity(String userId, String socialProvider, RealmModel realm)
-
-