public class DummyUserFederationProvider extends Object implements UserFederationProvider
UserFederationProvider.EditModeEMAIL, FIRST_NAME, LAST_NAME, USERNAME| Constructor and Description |
|---|
DummyUserFederationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getSupportedCredentialTypes(UserModel user)
What UserCredentialModel types should be handled by this provider for this user? Keycloak will only call
validCredentials() with the credential types specified in this method.
|
UserModel |
getUserByEmail(RealmModel realm,
String email)
Required to import into local storage any user found.
|
UserModel |
getUserByUsername(RealmModel realm,
String username)
Required to import into local storage any user found.
|
boolean |
isValid(UserModel local)
Is the Keycloak UserModel still valid and/or existing in federated storage?
|
void |
preRemove(RealmModel realm)
called whenever a Realm is removed
|
void |
preRemove(RealmModel realm,
RoleModel role)
called before a role is removed.
|
UserModel |
proxy(UserModel local)
Gives the provider an option to proxy UserModels loaded from local storage.
|
UserModel |
register(RealmModel realm,
UserModel user)
Called if this federation provider has priority and supports synchronized registrations.
|
boolean |
removeUser(RealmModel realm,
UserModel user) |
List<UserModel> |
searchByAttributes(Map<String,String> attributes,
RealmModel realm,
int maxResults)
Required to import into local storage any user found.
|
boolean |
synchronizeRegistrations()
Should user registrations be synchronized with this provider?
FYI, only one provider will be chosen (by priority) to have this synchronization
|
boolean |
validCredentials(RealmModel realm,
UserModel user,
List<UserCredentialModel> input)
Validate credentials for this user.
|
boolean |
validCredentials(RealmModel realm,
UserModel user,
UserCredentialModel... input) |
public UserModel proxy(UserModel local)
UserFederationProviderproxy in interface UserFederationProviderpublic boolean synchronizeRegistrations()
UserFederationProvidersynchronizeRegistrations in interface UserFederationProviderpublic UserModel register(RealmModel realm, UserModel user)
UserFederationProviderregister in interface UserFederationProviderpublic boolean removeUser(RealmModel realm, UserModel user)
removeUser in interface UserFederationProviderpublic UserModel getUserByUsername(RealmModel realm, String username)
UserFederationProvidergetUserByUsername in interface UserFederationProviderpublic UserModel getUserByEmail(RealmModel realm, String email)
UserFederationProvidergetUserByEmail in interface UserFederationProviderpublic List<UserModel> searchByAttributes(Map<String,String> attributes, RealmModel realm, int maxResults)
UserFederationProvidersearchByAttributes in interface UserFederationProviderpublic void preRemove(RealmModel realm)
UserFederationProviderpreRemove in interface UserFederationProviderpublic void preRemove(RealmModel realm, RoleModel role)
UserFederationProviderpreRemove in interface UserFederationProviderpublic boolean isValid(UserModel local)
UserFederationProviderisValid in interface UserFederationProviderpublic Set<String> getSupportedCredentialTypes(UserModel user)
UserFederationProvidergetSupportedCredentialTypes in interface UserFederationProviderpublic boolean validCredentials(RealmModel realm, UserModel user, List<UserCredentialModel> input)
UserFederationProvidervalidCredentials in interface UserFederationProviderpublic boolean validCredentials(RealmModel realm, UserModel user, UserCredentialModel... input)
validCredentials in interface UserFederationProviderpublic void close()
close in interface UserFederationProviderclose in interface ProviderCopyright © 2014. All Rights Reserved.