Uses of Interface
org.keycloak.models.RealmModel
Packages that use RealmModel
Package
Description
-
Uses of RealmModel in org.keycloak.component
Methods in org.keycloak.component with parameters of type RealmModelModifier and TypeMethodDescriptiondefault List<ProviderConfigProperty>SubComponentFactory.getConfigProperties(RealmModel realm, ComponentModel parent) SubComponentFactory.getTypeMetadata(RealmModel realm, ComponentModel parent) This is metadata about this component type.default voidComponentFactory.onCreate(KeycloakSession session, RealmModel realm, ComponentModel model) Called after a component is createddefault voidComponentFactory.onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Called after the component is updated.default voidComponentFactory.preRemove(KeycloakSession session, RealmModel realm, ComponentModel model) Called before the component is removed.default voidComponentFactory.validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated. -
Uses of RealmModel in org.keycloak.credential
Methods in org.keycloak.credential with parameters of type RealmModelModifier and TypeMethodDescriptionCredentialAuthentication.authenticate(RealmModel realm, CredentialInput input) CredentialProvider.createCredential(RealmModel realm, UserModel user, T credentialModel) UserCredentialStore.createCredential(RealmModel realm, UserModel user, CredentialModel cred) booleanCredentialProvider.deleteCredential(RealmModel realm, UserModel user, String credentialId) voidCredentialInputUpdater.disableCredentialType(RealmModel realm, UserModel user, String credentialType) default TCredentialProvider.getDefaultCredential(KeycloakSession session, RealmModel realm, UserModel user) CredentialInputUpdater.getDisableableCredentialTypesStream(RealmModel realm, UserModel user) Obtains the set of credential types that can be disabled viadisableCredentialType.UserCredentialStore.getStoredCredentialById(RealmModel realm, UserModel user, String id) UserCredentialStore.getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type) UserCredentialStore.getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type) Obtains the stored credentials associated with the specified user that match the specified type.UserCredentialStore.getStoredCredentialsStream(RealmModel realm, UserModel user) Obtains the stored credentials associated with the specified user.booleanCredentialInputValidator.isConfiguredFor(RealmModel realm, UserModel user, String credentialType) booleanCredentialInputValidator.isValid(RealmModel realm, UserModel user, CredentialInput credentialInput) Tests whether a credential is validbooleanUserCredentialStore.moveCredentialTo(RealmModel realm, UserModel user, String id, String newPreviousCredentialId) booleanUserCredentialStore.removeStoredCredential(RealmModel realm, UserModel user, String id) Removes credential with theidfor theuser.booleanCredentialInputUpdater.updateCredential(RealmModel realm, UserModel user, CredentialInput input) voidUserCredentialStore.updateCredential(RealmModel realm, UserModel user, CredentialModel cred) -
Uses of RealmModel in org.keycloak.locale
Methods in org.keycloak.locale with parameters of type RealmModelModifier and TypeMethodDescriptionLocaleSelectorProvider.resolveLocale(RealmModel realm, UserModel user) Resolve the locale which should be used for the request -
Uses of RealmModel in org.keycloak.models
Fields in org.keycloak.models with type parameters of type RealmModelModifier and TypeFieldDescriptionstatic final Comparator<RealmModel>RealmModel.COMPARE_BY_NAMEprotected Supplier<RealmModel>AbstractConfig.realmprotected Supplier<RealmModel>AbstractConfig.realmForWriteMethods in org.keycloak.models that return RealmModelModifier and TypeMethodDescriptionRealmProvider.createRealm(String name) Creates new realm with the given name.RealmProvider.createRealm(String id, String name) Created new realm with given ID and name.RealmModel.RealmCreationEvent.getCreatedRealm()RealmModel.RealmPostCreateEvent.getCreatedRealm()ClientModel.getRealm()ClientScopeModel.getRealm()FederatedIdentityModel.FederatedIdentityCreatedEvent.getRealm()FederatedIdentityModel.FederatedIdentityRemovedEvent.getRealm()GroupModel.GroupPathChangeEvent.getRealm()GroupModel.GroupRemovedEvent.getRealm()KeycloakContext.getRealm()RealmModel.IdentityProviderRemovedEvent.getRealm()RealmModel.IdentityProviderUpdatedEvent.getRealm()RealmModel.RealmRemovedEvent.getRealm()Exact search for a realm by its internal ID.RoleModel.RoleNameChangeEvent.getRealm()UserModel.UserRemovedEvent.getRealm()UserSessionModel.getRealm()RealmProvider.getRealmByName(String name) Exact search for a realm by its name.Methods in org.keycloak.models that return types with arguments of type RealmModelModifier and TypeMethodDescriptionRealmProvider.getRealmsStream()Returns realms as a stream.RealmProvider.getRealmsWithProviderTypeStream(Class<?> type) Returns stream of realms which has component with the given provider type.Methods in org.keycloak.models with parameters of type RealmModelModifier and TypeMethodDescriptiondefault ClientModelClientProvider.addClient(RealmModel realm, String clientId) Adds a client with givenclientIdto the given realm.ClientProvider.addClient(RealmModel realm, String id, String clientId) Adds a client with given internal ID andclientIdto the given realm.default ClientScopeModelClientScopeProvider.addClientScope(RealmModel realm, String name) Creates new client scope with givennameto the given realm.ClientScopeProvider.addClientScope(RealmModel realm, String id, String name) Creates new client scope with given internal ID andnameto the given realm.voidClientProvider.addClientScopes(RealmModel realm, ClientModel client, Set<ClientScopeModel> clientScopes, boolean defaultScope) Assign clientScopes to the client.voidUserProvider.addConsent(RealmModel realm, String userId, UserConsentModel consent) Add user consent for the user.voidUserProvider.addFederatedIdentity(RealmModel realm, UserModel user, FederatedIdentityModel socialLink) Adds a federated identity link for the user within the realmdefault RoleModelRoleProvider.addRealmRole(RealmModel realm, String name) Adds a realm role with givennameto the given realm.RoleProvider.addRealmRole(RealmModel realm, String id, String name) Adds a realm role with given internal ID andnameto the given realm.voidGroupProvider.addTopLevelGroup(RealmModel realm, GroupModel subGroup) Removes parent group for the given group in the given realm.UserProvider.addUser(RealmModel realm, String id, String username, boolean addDefaultRoles, boolean addDefaultRequiredActions) Adds a new user into the storage.UserLoginFailureProvider.addUserLoginFailure(RealmModel realm, String userId) Adds aUserLoginFailureModelfor the given realm and user id.default ClientInitialAccessModelRealmProvider.createClientInitialAccessModel(RealmModel realm, int expiration, int count) UserSessionProvider.createClientSession(RealmModel realm, ClientModel client, UserSessionModel userSession) default GroupModelGroupProvider.createGroup(RealmModel realm, String name) Creates a new group with the given name in the given realm.default GroupModelGroupProvider.createGroup(RealmModel realm, String id, String name) Creates a new group with the given id and name in the given realm.GroupProvider.createGroup(RealmModel realm, String id, String name, GroupModel toParent) Creates a new group with the given name, id, name and parent to the given realm.default GroupModelGroupProvider.createGroup(RealmModel realm, String name, GroupModel toParent) Creates a new group with the given name and parent to the given realm.UserSessionProvider.createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState) Creates a new user session with the given parameters.default UserSessionModelUserSessionProvider.createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) Deprecated.default voidRealmProvider.decreaseRemainingCount(RealmModel realm, ClientInitialAccessModel clientInitialAccess) booleanRealmProvider.deleteLocalizationText(RealmModel realm, String locale, String key) booleanRealmProvider.deleteLocalizationTextsByLocale(RealmModel realm, String locale) KeyManager.getActiveAesKey(RealmModel realm) Deprecated.UserSessionProvider.getActiveClientSessionStats(RealmModel realm, boolean offline) Returns a summary of client sessions key is client.getId()KeyManager.getActiveHmacKey(RealmModel realm) Deprecated.KeyManager.getActiveKey(RealmModel realm, KeyUse use, String algorithm) KeyManager.getActiveRsaKey(RealmModel realm) Deprecated.longUserSessionProvider.getActiveUserSessions(RealmModel realm, ClientModel client) KeyManager.getAesKeys(RealmModel realm) Deprecated.KeyManager.getAesSecretKey(RealmModel realm, String kid) Deprecated.ClientProvider.getAllRedirectUrisOfEnabledClients(RealmModel realm) Deprecated.Do not use, this is only to support a deprecated logout endpoint and will vanish with it's removalClientProvider.getAlwaysDisplayInConsoleClientsStream(RealmModel realm) Returns a stream of clients that are expected to always show up in account console.default ClientInitialAccessModelRealmProvider.getClientInitialAccessModel(RealmModel realm, String id) ClientScopeProvider.getClientScopesStream(RealmModel realm) Returns all the client scopes of the given realm as a stream.longClientProvider.getClientsCount(RealmModel realm) Returns number of clients in the given realmdefault Stream<ClientModel>ClientProvider.getClientsStream(RealmModel realm) Returns all the clients of the given realm as a stream.ClientProvider.getClientsStream(RealmModel realm, Integer firstResult, Integer maxResults) Returns the clients of the given realm as a stream.UserProvider.getConsentByClient(RealmModel realm, String userId, String clientInternalId) Returns UserConsentModel given by a user with the userId for the client with clientInternalIdUserProvider.getConsentsStream(RealmModel realm, String userId) Obtains the consents associated with the user identified by the specifieduserId.UserProvider.getFederatedIdentitiesStream(RealmModel realm, UserModel user) Obtains the federated identities of the specified user.UserProvider.getFederatedIdentity(RealmModel realm, UserModel user, String socialProvider) Returns details of the association between the user and the socialProvider.GroupProvider.getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) Returns groups with the given role in the given realm.GroupProvider.getGroupsCount(RealmModel realm, Boolean onlyTopGroups) Returns a number of groups/top level groups (i.e.default LongGroupProvider.getGroupsCount(RealmModel realm, Stream<String> ids, String search) Returns a number of groups that contains the search string in the nameGroupProvider.getGroupsCountByNameContaining(RealmModel realm, String search) Returns the number of top level groups containing groups with the given string in name for the given realm.GroupProvider.getGroupsStream(RealmModel realm) Returns groups for the given realm.default Stream<GroupModel>GroupProvider.getGroupsStream(RealmModel realm, Stream<String> ids) Returns a stream of groups with given ids.default Stream<GroupModel>GroupProvider.getGroupsStream(RealmModel realm, Stream<String> ids, Integer first, Integer max) Returns a paginated stream of groups with given ids.GroupProvider.getGroupsStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Returns a paginated stream of groups with given ids and given search value in group names.KeyManager.getHmacKeys(RealmModel realm) Deprecated.KeyManager.getHmacSecretKey(RealmModel realm, String kid) Deprecated.KeyManager.getKey(RealmModel realm, String kid, KeyUse use, String algorithm) KeyManager.getKeysStream(RealmModel realm) Returns allKeyWrapperfor the given realm.KeyManager.getKeysStream(RealmModel realm, KeyUse use, String algorithm) Returns allKeyWrapperfor the given realm that match given criteria.OTPPolicy.getKeyURI(RealmModel realm, UserModel user, String secret) Constructs theotpauth://URI based on the Key-Uri-Format.RealmProvider.getLocalizationTextsById(RealmModel realm, String locale, String key) intUserProvider.getNotBeforeOfUser(RealmModel realm, UserModel user) Gets the notBefore value for the given userlongUserSessionProvider.getOfflineSessionsCount(RealmModel realm, ClientModel client) UserSessionProvider.getOfflineUserSession(RealmModel realm, String userSessionId) UserSessionProvider.getOfflineUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) Deprecated.Instead of this method, useUserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel, String)to first get the sessions of a user, and then filter by the broker session ID as needed.UserSessionProvider.getOfflineUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) Obtains the offline user sessions associated with the user that matches the specifiedbrokerUserId.UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults) Obtains the offline user sessions associated with the specified client, starting from thefirstResultand containing at mostmaxResults.UserSessionProvider.getOfflineUserSessionsStream(RealmModel realm, UserModel user) Obtains the offline user sessions associated with the specified user.RoleProvider.getRealmRolesStream(RealmModel realm) Returns all the realm roles of the given realm as a stream.RoleProvider.getRealmRolesStream(RealmModel realm, Integer first, Integer max) Returns the realm roles of the given realm as a stream.RoleProvider.getRolesStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Returns a paginated stream of roles with given ids and given search value in role names.KeyManager.getRsaCertificate(RealmModel realm, String kid) Deprecated.KeyManager.getRsaKeys(RealmModel realm) Deprecated.KeyManager.getRsaPublicKey(RealmModel realm, String kid) Deprecated.intUserSessionProvider.getStartupTime(RealmModel realm) default Stream<GroupModel>GroupProvider.getTopLevelGroupsStream(RealmModel realm) Returns all top level groups (i.e.default Stream<GroupModel>GroupProvider.getTopLevelGroupsStream(RealmModel realm, Integer firstResult, Integer maxResults) Returns top level groups (i.e.GroupProvider.getTopLevelGroupsStream(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) Returns top level groups (i.e.UserProvider.getUserByFederatedIdentity(RealmModel realm, FederatedIdentityModel socialLink) Returns a userModel that corresponds to the given socialLink.UserLoginFailureProvider.getUserLoginFailure(RealmModel realm, String userId) Returns theUserLoginFailureModelfor the given realm and user id.UserSessionProvider.getUserSession(RealmModel realm, String id) UserSessionProvider.getUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) UserSessionProvider.getUserSessionByBrokerUserIdStream(RealmModel realm, String brokerUserId) Obtains the online user sessions associated with the user that matches the specifiedbrokerUserId.UserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client) Obtains the online user sessions associated with the specified client.UserSessionProvider.getUserSessionsStream(RealmModel realm, ClientModel client, Integer firstResult, Integer maxResults) Obtains the online user sessions associated with the specified client, starting from thefirstResultand containing at mostmaxResults.UserSessionProvider.getUserSessionsStream(RealmModel realm, UserModel user) Obtains the online user sessions associated with the specified user.UserSessionProvider.getUserSessionWithPredicate(RealmModel realm, String id, boolean offline, Predicate<UserSessionModel> predicate) Return userSession of specified ID as long as the predicate passes.default Stream<ClientInitialAccessModel>RealmProvider.listClientInitialAccessStream(RealmModel realm) Returns client's initial access as a stream.voidGroupProvider.moveGroup(RealmModel realm, GroupModel group, GroupModel toParent) This method is used for moving groups in group structure, for example: making an existing child group child group of some other group, setting a top level group (i.e.voidUserSessionProvider.onClientRemoved(RealmModel realm, ClientModel client) voidUserSessionProvider.onRealmRemoved(RealmModel realm) voidUserProvider.preRemove(RealmModel realm) Called when a realm is removed.voidUserProvider.preRemove(RealmModel realm, ComponentModel component) Called when a component is removed.voidUserProvider.preRemove(RealmModel realm, ClientModel client) Called when a client is removed.voidUserProvider.preRemove(RealmModel realm, GroupModel group) Called when a group is removed.voidUserProvider.preRemove(RealmModel realm, IdentityProviderModel provider) Called when an identity provider is removed.voidUserProvider.preRemove(RealmModel realm, RoleModel role) Called when a role is removed.voidUserLoginFailureProvider.removeAllUserLoginFailures(RealmModel realm) Removes all theUserLoginFailureModelfor the given realm.booleanClientProvider.removeClient(RealmModel realm, String id) Removes given client from the given realm.default voidRealmProvider.removeClientInitialAccessModel(RealmModel realm, String id) voidClientProvider.removeClients(RealmModel realm) Removes all clients from the given realm.voidClientProvider.removeClientScope(RealmModel realm, ClientModel client, ClientScopeModel clientScope) Unassign clientScope from the client.booleanClientScopeProvider.removeClientScope(RealmModel realm, String id) Removes client scope from the given realm.voidClientScopeProvider.removeClientScopes(RealmModel realm) Removes all client scopes from the given realm.voidUserSessionProvider.removeExpired(RealmModel realm) Removes expired user sessions owned by this realm from this provider.booleanUserProvider.removeFederatedIdentity(RealmModel realm, UserModel user, String socialProvider) Removes federation link between the user and the identity provider given by its idbooleanGroupProvider.removeGroup(RealmModel realm, GroupModel group) Removes the given group for the given realm.voidUserProvider.removeImportedUsers(RealmModel realm, String storageProviderId) Removes any imported users from a specific User Storage Provider.voidUserSessionProvider.removeOfflineUserSession(RealmModel realm, UserSessionModel userSession) Removes the attached clientSessions as wellvoidRoleProvider.removeRoles(RealmModel realm) Removes all roles from the given realm.booleanUserManager.removeUser(RealmModel realm, UserModel user) booleanUserManager.removeUser(RealmModel realm, UserModel user, UserProvider userProvider) voidUserLoginFailureProvider.removeUserLoginFailure(RealmModel realm, String userId) Removes aUserLoginFailureModelfor the given realm and user id.voidUserSessionProvider.removeUserSession(RealmModel realm, UserSessionModel session) This will remove attached ClientLoginSessionModels toovoidUserSessionProvider.removeUserSessions(RealmModel realm) voidUserSessionProvider.removeUserSessions(RealmModel realm, UserModel user) voidUserSessionModel.restartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) booleanUserProvider.revokeConsentForClient(RealmModel realm, String userId, String clientInternalId) Remove a user consent given by the user id and client idvoidRealmProvider.saveLocalizationText(RealmModel realm, String locale, String key, String text) voidRealmProvider.saveLocalizationTexts(RealmModel realm, String locale, Map<String, String> localizationTexts) voidUserProvider.setNotBeforeForUser(RealmModel realm, UserModel user, int notBefore) Sets the notBefore value for the given uservoidOAuth2DeviceConfig.setOAuth2DeviceCodeLifespan(RealmModel realm, Integer seconds) voidOAuth2DeviceConfig.setOAuth2DevicePollingInterval(RealmModel realm, Integer seconds) voidKeycloakContext.setRealm(RealmModel realm) voidUserProvider.unlinkUsers(RealmModel realm, String storageProviderId) Set federation link tonullto imported users of a specific User Storage ProvidervoidUserProvider.updateConsent(RealmModel realm, String userId, UserConsentModel consent) Update client scopes in the stored user consentvoidUserProvider.updateFederatedIdentity(RealmModel realm, UserModel federatedUser, FederatedIdentityModel federatedIdentityModel) Update details of association between the federatedUser and the idp given by the federatedIdentityModelbooleanRealmProvider.updateLocalizationText(RealmModel realm, String locale, String key, String text) voidIdentityProviderModel.validate(RealmModel realm) Validates this configuration.Constructors in org.keycloak.models with parameters of type RealmModelModifierConstructorDescriptionCibaConfig(RealmModel realm) OAuth2DeviceConfig(RealmModel realm) ParConfig(RealmModel realm) -
Uses of RealmModel in org.keycloak.models.credential
Methods in org.keycloak.models.credential with parameters of type RealmModelModifier and TypeMethodDescriptionstatic OTPCredentialModelOTPCredentialModel.createFromPolicy(RealmModel realm, String secretValue) static OTPCredentialModelOTPCredentialModel.createFromPolicy(RealmModel realm, String secretValue, String userLabel) -
Uses of RealmModel in org.keycloak.models.utils
Methods in org.keycloak.models.utils with parameters of type RealmModelModifier and TypeMethodDescriptionstatic booleanRoleUtils.isRealmRole(RoleModel r, RealmModel realm) -
Uses of RealmModel in org.keycloak.policy
Methods in org.keycloak.policy with parameters of type RealmModelModifier and TypeMethodDescriptionPasswordPolicyProvider.validate(RealmModel realm, UserModel user, String password) -
Uses of RealmModel in org.keycloak.services.clientpolicy
Methods in org.keycloak.services.clientpolicy with parameters of type RealmModelModifier and TypeMethodDescriptionClientPolicyManager.getClientPolicies(RealmModel realm) when getting client policies via Admin REST API, returns the existing client policies set on the realm.ClientPolicyManager.getClientProfiles(RealmModel realm, boolean includeGlobalProfiles) when getting client profiles via Admin REST API, returns the existing client profiles set on the realm.voidClientPolicyManager.setupClientPoliciesOnCreatedRealm(RealmModel realm) when creating a realm, adds the default client policies, which should be available on the realm and put them onto the realm as its attribute.voidClientPolicyManager.updateClientPolicies(RealmModel realm, ClientPoliciesRepresentation clientPolicies) when updating client policies via Admin REST API, reads the json representation of the client policies and overrides the existing client policies set on the realm with them.voidClientPolicyManager.updateClientProfiles(RealmModel realm, ClientProfilesRepresentation clientProfiles) when updating client profiles via Admin REST API, reads the json representation of the client profiles and overrides the existing client profiles set on the realm with them.voidClientPolicyManager.updateRealmModelFromRepresentation(RealmModel realm, RealmRepresentation rep) when importing a realm, or updating a realm, update model from the representation objectvoidClientPolicyManager.updateRealmRepresentationFromModel(RealmModel realm, RealmRepresentation rep) when exporting realm, or retrieve the realm for admin REST API, prepares the exported representation of the client profiles and policies. -
Uses of RealmModel in org.keycloak.sessions
Methods in org.keycloak.sessions that return RealmModelModifier and TypeMethodDescriptionCommonClientSessionModel.getRealm()RootAuthenticationSessionModel.getRealm()Returns realm associated to the root authentication session.Methods in org.keycloak.sessions with parameters of type RealmModelModifier and TypeMethodDescriptionAuthenticationSessionProvider.createRootAuthenticationSession(RealmModel realm) Creates and registers a new authentication session with random ID.AuthenticationSessionProvider.createRootAuthenticationSession(RealmModel realm, String id) Creates a new root authentication session specified by the provided realm and id.AuthenticationSessionProvider.getRootAuthenticationSession(RealmModel realm, String authenticationSessionId) Returns the root authentication session specified by the provided realm and id.voidAuthenticationSessionProvider.onClientRemoved(RealmModel realm, ClientModel client) Removes all associated root authentication sessions to the given realm and client which was removed.voidAuthenticationSessionProvider.onRealmRemoved(RealmModel realm) Removes all associated root authentication sessions to the given realm which was removed.voidAuthenticationSessionProvider.removeExpired(RealmModel realm) Deprecated.manual removal of expired entities should not be used anymore.voidAuthenticationSessionProvider.removeRootAuthenticationSession(RealmModel realm, RootAuthenticationSessionModel authenticationSession) Removes provided root authentication session.voidRootAuthenticationSessionModel.restartSession(RealmModel realm) Will completely restart whole state of authentication session. -
Uses of RealmModel in org.keycloak.storage.client
Methods in org.keycloak.storage.client with parameters of type RealmModelModifier and TypeMethodDescriptionClientLookupProvider.getClientByClientId(RealmModel realm, String clientId) Exact search for a client by its public client identifier.ClientLookupProvider.getClientById(RealmModel realm, String id) Exact search for a client by its internal ID.ClientLookupProvider.getClientScopes(RealmModel realm, ClientModel client, boolean defaultScopes) Return all default scopes (ifdefaultScopeistrue) or all optional scopes (ifdefaultScopeisfalse) linked with the clientClientLookupProvider.searchClientsByAttributes(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) default Stream<ClientModel>ClientLookupProvider.searchClientsByAuthenticationFlowBindingOverrides(RealmModel realm, Map<String, String> overrides, Integer firstResult, Integer maxResults) ClientLookupProvider.searchClientsByClientIdStream(RealmModel realm, String clientId, Integer firstResult, Integer maxResults) Case-insensitive search for clients that contain the given string in their public client identifier. -
Uses of RealmModel in org.keycloak.storage.clientscope
Methods in org.keycloak.storage.clientscope with parameters of type RealmModelModifier and TypeMethodDescriptionClientScopeLookupProvider.getClientScopeById(RealmModel realm, String id) Exact search for a client scope by its internal ID.. -
Uses of RealmModel in org.keycloak.storage.group
Methods in org.keycloak.storage.group with parameters of type RealmModelModifier and TypeMethodDescriptionGroupLookupProvider.getGroupById(RealmModel realm, String id) Returns a group from the given realm with the corresponding iddefault GroupModelGroupLookupProvider.getGroupByName(RealmModel realm, GroupModel parent, String name) Returns a group from the given realm with the corresponding name and parentGroupLookupProvider.searchForGroupByNameStream(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) Returns the group hierarchy with the given string in name for the given realm.default Stream<GroupModel>GroupLookupProvider.searchForGroupByNameStream(RealmModel realm, String search, Integer firstResult, Integer maxResults) Deprecated.GroupLookupProvider.searchGroupsByAttributes(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Returns the groups filtered by attribute names and attribute values for the given realm. -
Uses of RealmModel in org.keycloak.storage.role
Methods in org.keycloak.storage.role with parameters of type RealmModelModifier and TypeMethodDescriptionRoleLookupProvider.getRealmRole(RealmModel realm, String name) Exact search for a role by given name.RoleLookupProvider.getRoleById(RealmModel realm, String id) Exact search for a role by its internal ID..RoleLookupProvider.searchForClientRolesStream(RealmModel realm, String search, Stream<String> excludedIds, Integer first, Integer max) Case-insensitive search for client roles that contain the given string in their name or their client's public identifier (clientId - (client_idin OIDC orentityIDin SAML)).RoleLookupProvider.searchForClientRolesStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Case-insensitive search for client roles that contain the given string in its name or their client's public identifier (clientId - (client_idin OIDC orentityIDin SAML)).RoleLookupProvider.searchForRolesStream(RealmModel realm, String search, Integer first, Integer max) Case-insensitive search for roles that contain the given string in their name or description. -
Uses of RealmModel in org.keycloak.storage.user
Methods in org.keycloak.storage.user with parameters of type RealmModelModifier and TypeMethodDescriptionUserRegistrationProvider.addUser(RealmModel realm, String username) All storage providers that implement this interface will be looped through.UserQueryMethodsProvider.getGroupMembersStream(RealmModel realm, GroupModel group) Obtains users that belong to a specific group.UserQueryMethodsProvider.getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) Obtains users that belong to a specific group.UserQueryMethodsProvider.getRoleMembersStream(RealmModel realm, RoleModel role) Obtains users that have the specified role.UserQueryMethodsProvider.getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) Searches for users that have the specified role.default CredentialValidationOutputUserLookupProvider.getUserByCredential(RealmModel realm, CredentialInput input) UserLookupProvider.getUserByEmail(RealmModel realm, String email) Returns a user with the given email belonging to the realmUserLookupProvider.getUserById(RealmModel realm, String id) Returns a user with the given id belonging to the realmUserLookupProvider.getUserByUsername(RealmModel realm, String username) Exact search for a user by its username.default intUserCountMethodsProvider.getUsersCount(RealmModel realm) Returns the number of users, without consider any service account.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, boolean includeServiceAccount) Returns the number of users.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, String search) Deprecated.UseUserCountMethodsProvider.getUsersCount(RealmModel, Map)with anparamsmap containingUserModel.SEARCHinstead.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, String search, Set<String> groupIds) Deprecated.UseUserCountMethodsProvider.getUsersCount(RealmModel, Map, Set)with anparamsmap containingUserModel.SEARCHinstead.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, Map<String, String> params) Returns the number of users that match the given filter parameters.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, Map<String, String> params, Set<String> groupIds) Returns the number of users that match the given filter parameters and is in at least one of the given groups.default intUserCountMethodsProvider.getUsersCount(RealmModel realm, Set<String> groupIds) Returns the number of users that are in at least one of the groups given.voidUserBulkUpdateProvider.grantToAllUsers(RealmModel realm, RoleModel role) Grants the given role to all users from particular realm.booleanUserRegistrationProvider.removeUser(RealmModel realm, UserModel user) Called if user originated from this provider.UserQueryMethodsProvider.searchForUserByUserAttributeStream(RealmModel realm, String attrName, String attrValue) Searches for users that have a specific attribute with a specific value.UserQueryMethodsProvider.searchForUserStream(RealmModel realm, String search) Deprecated.UseUserQueryMethodsProvider.searchForUserStream(RealmModel, Map)with anparamsmap containingUserModel.SEARCHinstead.UserQueryMethodsProvider.searchForUserStream(RealmModel realm, String search, Integer firstResult, Integer maxResults) Deprecated.UseUserQueryMethodsProvider.searchForUserStream(RealmModel, Map, Integer, Integer)with anparamsmap containingUserModel.SEARCHinstead.UserQueryMethodsProvider.searchForUserStream(RealmModel realm, Map<String, String> params) Searches for user by parameter.UserQueryMethodsProvider.searchForUserStream(RealmModel realm, Map<String, String> params, Integer firstResult, Integer maxResults) Searches for user by parameter. -
Uses of RealmModel in org.keycloak.theme
Methods in org.keycloak.theme with parameters of type RealmModelModifier and TypeMethodDescriptionTheme.getEnhancedMessages(RealmModel realm, Locale locale) Retrieve localized messages from a message bundle named "messages" and enhance those messages with messages from realm localization. -
Uses of RealmModel in org.keycloak.userprofile
Methods in org.keycloak.userprofile with parameters of type RealmModelModifier and TypeMethodDescriptionvoidUserProfileDecorator.decorateUserProfile(RealmModel realm, UserProfileMetadata metadata) Decorates user profile with additional metadata.
UserSessionProvider.createUserSession(String, RealmModel, UserModel, String, String, String, boolean, String, String, UserSessionModel.SessionPersistenceState)instead.