Uses of Interface
org.keycloak.models.UserModel
-
Packages that use UserModel Package Description org.keycloak.credential org.keycloak.locale org.keycloak.models org.keycloak.models.utils org.keycloak.policy org.keycloak.sessions org.keycloak.storage org.keycloak.storage.user -
-
Uses of UserModel in org.keycloak.credential
Methods in org.keycloak.credential that return UserModel Modifier and Type Method Description UserModelCredentialTypeMetadataContext. getUser()Methods in org.keycloak.credential with parameters of type UserModel Modifier and Type Method Description CredentialModelCredentialProvider. createCredential(RealmModel realm, UserModel user, T credentialModel)CredentialModelUserCredentialStore. 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)Stream<String>CredentialInputUpdater. getDisableableCredentialTypesStream(RealmModel realm, UserModel user)Obtains the set of credential types that can be disabled viadisableCredentialType.CredentialModelUserCredentialStore. getStoredCredentialById(RealmModel realm, UserModel user, String id)CredentialModelUserCredentialStore. getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)Stream<CredentialModel>UserCredentialStore. getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)Obtains the stored credentials associated with the specified user that match the specified type.Stream<CredentialModel>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)CredentialTypeMetadataContext.CredentialTypeMetadataContextBuilderCredentialTypeMetadataContext.CredentialTypeMetadataContextBuilder. user(UserModel user) -
Uses of UserModel in org.keycloak.locale
Methods in org.keycloak.locale with parameters of type UserModel Modifier and Type Method Description LocaleLocaleSelectorProvider. resolveLocale(RealmModel realm, UserModel user)Resolve the locale which should be used for the requestvoidLocaleUpdaterProvider. updateUsersLocale(UserModel user, String locale) -
Uses of UserModel in org.keycloak.models
Subinterfaces of UserModel in org.keycloak.models Modifier and Type Interface Description static interfaceUserModel.StreamsDeprecated.This interface is no longer necessary, collection-based methods were removed from the parent interface and therefore the parent interface can be used directlyFields in org.keycloak.models with type parameters of type UserModel Modifier and Type Field Description static SearchableModelField<UserModel>UserModel.SearchableFields. ASSIGNED_GROUPstatic SearchableModelField<UserModel>UserModel.SearchableFields. ASSIGNED_ROLEstatic SearchableModelField<UserModel>UserModel.SearchableFields. ATTRIBUTESearch for attribute value.static Comparator<UserModel>UserModel. COMPARE_BY_USERNAMEstatic SearchableModelField<UserModel>UserModel.SearchableFields. CONSENT_CLIENT_FEDERATION_LINKSearch for users that have consent set for a particular client that originates in the given client provider.static SearchableModelField<UserModel>UserModel.SearchableFields. CONSENT_FOR_CLIENTSearch for users that have consent set for a particular client.static SearchableModelField<UserModel>UserModel.SearchableFields. CONSENT_WITH_CLIENT_SCOPESearch for users that have consent that has given client scope.static SearchableModelField<UserModel>UserModel.SearchableFields. EMAILstatic SearchableModelField<UserModel>UserModel.SearchableFields. EMAIL_VERIFIEDstatic SearchableModelField<UserModel>UserModel.SearchableFields. ENABLEDstatic SearchableModelField<UserModel>UserModel.SearchableFields. FEDERATION_LINKstatic SearchableModelField<UserModel>UserModel.SearchableFields. FIRST_NAMEstatic SearchableModelField<UserModel>UserModel.SearchableFields. IDstatic SearchableModelField<UserModel>UserModel.SearchableFields. IDP_AND_USERThis field can only searched either for users coming from an IDP, then the operand is (idp_alias), or as user coming from a particular IDP with given username there, then the operand is a pair (idp_alias, idp_user_id).static SearchableModelField<UserModel>UserModel.SearchableFields. LAST_NAMEstatic SearchableModelField<UserModel>UserModel.SearchableFields. REALM_IDstatic SearchableModelField<UserModel>UserModel.SearchableFields. SERVICE_ACCOUNT_CLIENTID of the client corresponding to the service accountstatic SearchableModelField<UserModel>UserModel.SearchableFields. USERNAMESearch for user's username in case sensitive mode.static SearchableModelField<UserModel>UserModel.SearchableFields. USERNAME_CASE_INSENSITIVESearch for user's username in case insensitive mode.Methods in org.keycloak.models that return UserModel Modifier and Type Method Description UserModelUserProvider. addUser(RealmModel realm, String id, String username, boolean addDefaultRoles, boolean addDefaultRequiredActions)Adds a new user into the storage.UserModelCredentialValidationOutput. getAuthenticatedUser()UserModelUserProvider. getServiceAccount(ClientModel client)Return a UserModel representing service account of the clientUserModelUserModel.UserRemovedEvent. getUser()UserModelUserSessionModel. getUser()UserModelUserProvider. getUserByFederatedIdentity(RealmModel realm, FederatedIdentityModel socialLink)Returns a userModel that corresponds to the given socialLink.Methods in org.keycloak.models that return types with arguments of type UserModel Modifier and Type Method Description default Stream<UserModel>UserProvider. getUsersStream(RealmModel realm, boolean includeServiceAccounts)Deprecated.UseUserQueryProvider.searchForUserStream(RealmModel, Map)withINCLUDE_SERVICE_ACCOUNTwithin params instead.default Stream<UserModel>UserProvider. getUsersStream(RealmModel realm, Integer firstResult, Integer maxResults, boolean includeServiceAccounts)Deprecated.UseUserQueryProvider.searchForUserStream(RealmModel, Map, Integer, Integer)withINCLUDE_SERVICE_ACCOUNTwithin paramsMethods in org.keycloak.models with parameters of type UserModel Modifier and Type Method Description voidUserProvider. addFederatedIdentity(RealmModel realm, UserModel user, FederatedIdentityModel socialLink)Adds a federated identity link for the user within the realmCredentialModelUserCredentialManager. createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)Deprecated.Creates a credential from the credentialModel, by looping through the providers to find a match for the typeUserSessionModelUserSessionProvider. createUserSession(String id, RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId, UserSessionModel.SessionPersistenceState persistenceState)UserSessionModelUserSessionProvider. createUserSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId)voidUserCredentialManager. disableCredentialType(RealmModel realm, UserModel user, String credentialType)Deprecated.Calls disableCredential on UserStorageProvider and UserFederationProviders first, then loop through each CredentialProvider.default Stream<String>UserCredentialManager. getConfiguredUserStorageCredentialTypesStream(RealmModel realm, UserModel user)Deprecated.default Stream<String>UserCredentialManager. getDisableableCredentialTypesStream(RealmModel realm, UserModel user)Deprecated.Stream<FederatedIdentityModel>UserProvider. getFederatedIdentitiesStream(RealmModel realm, UserModel user)Obtains the federated identities of the specified user.FederatedIdentityModelUserProvider. getFederatedIdentity(RealmModel realm, UserModel user, String socialProvider)Returns details of the association between the user and the socialProvider.StringOTPPolicy. getKeyURI(RealmModel realm, UserModel user, String secret)Constructs theotpauth://URI based on the Key-Uri-Format.intUserProvider. getNotBeforeOfUser(RealmModel realm, UserModel user)Gets the notBefore value for the given userStream<UserSessionModel>UserSessionProvider. getOfflineUserSessionsStream(RealmModel realm, UserModel user)Obtains the offline user sessions associated with the specified user.Stream<UserSessionModel>UserSessionProvider. getUserSessionsStream(RealmModel realm, UserModel user)Obtains the online user sessions associated with the specified user.LogoutTokenTokenManager. initLogoutToken(ClientModel client, UserModel user, AuthenticatedClientSessionModel clientSessionModel)booleanUserCredentialManager. isConfiguredFor(RealmModel realm, UserModel user, String type)Deprecated.Checks to see if user has credential type configured.booleanUserCredentialManager. isConfiguredLocally(RealmModel realm, UserModel user, String type)Deprecated.Only loops through each CredentialProvider to see if credential type is configured for the user.booleanUserCredentialManager. isValid(RealmModel realm, UserModel user, List<CredentialInput> inputs)Deprecated.Validates list of credentials.booleanUserCredentialManager. isValid(RealmModel realm, UserModel user, CredentialInput... inputs)Deprecated.Validates list of credentials.booleanUserProvider. removeFederatedIdentity(RealmModel realm, UserModel user, String socialProvider)Removes federation link between the user and the identity provider given by its idbooleanUserManager. removeUser(RealmModel realm, UserModel user)booleanUserManager. removeUser(RealmModel realm, UserModel user, UserProvider userProvider)voidUserSessionProvider. removeUserSessions(RealmModel realm, UserModel user)LocaleKeycloakContext. resolveLocale(UserModel user)voidUserSessionModel. restartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId)voidUserProvider. setNotBeforeForUser(RealmModel realm, UserModel user, int notBefore)Sets the notBefore value for the given userbooleanUserCredentialManager. updateCredential(RealmModel realm, UserModel user, CredentialInput input)Deprecated.Updates a credential.voidUserCredentialManager. updateCredentialLabel(RealmModel realm, UserModel user, String credentialId, String userLabel)Deprecated.Updates the credential label and invalidates the cache for the user.voidUserProvider. updateFederatedIdentity(RealmModel realm, UserModel federatedUser, FederatedIdentityModel federatedIdentityModel)Update details of association between the federatedUser and the idp given by the federatedIdentityModelConstructors in org.keycloak.models with parameters of type UserModel Constructor Description CredentialValidationOutput(UserModel authenticatedUser, CredentialValidationOutput.Status authStatus, Map<String,String> state) -
Uses of UserModel in org.keycloak.models.utils
Classes in org.keycloak.models.utils that implement UserModel Modifier and Type Class Description classUserModelDelegateDelegation pattern.Fields in org.keycloak.models.utils declared as UserModel Modifier and Type Field Description protected UserModelUserModelDelegate. delegateMethods in org.keycloak.models.utils that return UserModel Modifier and Type Method Description UserModelUserModelDelegate. getDelegate()Methods in org.keycloak.models.utils with parameters of type UserModel Modifier and Type Method Description static Set<RoleModel>RoleUtils. getDeepUserRoleMappings(UserModel user)Constructors in org.keycloak.models.utils with parameters of type UserModel Constructor Description UserModelDelegate(UserModel delegate) -
Uses of UserModel in org.keycloak.policy
Methods in org.keycloak.policy with parameters of type UserModel Modifier and Type Method Description PolicyErrorPasswordPolicyProvider. validate(RealmModel realm, UserModel user, String password) -
Uses of UserModel in org.keycloak.sessions
Methods in org.keycloak.sessions that return UserModel Modifier and Type Method Description UserModelAuthenticationSessionModel. getAuthenticatedUser()Returns authenticated user that is associated to the authentication session.Methods in org.keycloak.sessions with parameters of type UserModel Modifier and Type Method Description voidAuthenticationSessionModel. setAuthenticatedUser(UserModel user)Sets authenticated user that is associated to the authentication session. -
Uses of UserModel in org.keycloak.storage
Methods in org.keycloak.storage with parameters of type UserModel Modifier and Type Method Description static booleanStorageId. isLocalStorage(UserModel user)Deprecated.UseStorageId.isLocalStorage(String)instead.static StringStorageId. resolveProviderId(UserModel user)Deprecated.UseStorageId.providerId(String)instead. -
Uses of UserModel in org.keycloak.storage.user
Methods in org.keycloak.storage.user that return UserModel Modifier and Type Method Description UserModelUserRegistrationProvider. addUser(RealmModel realm, String username)All storage providers that implement this interface will be looped through.UserModelUserLookupProvider. getUserByEmail(RealmModel realm, String email)Returns a user with the given email belonging to the realmUserModelUserLookupProvider. getUserById(RealmModel realm, String id)Returns a user with the given id belonging to the realmUserModelUserLookupProvider. getUserByUsername(RealmModel realm, String username)Exact search for a user by its username.Methods in org.keycloak.storage.user that return types with arguments of type UserModel Modifier and Type Method Description default Stream<UserModel>UserQueryProvider. getGroupMembersStream(RealmModel realm, GroupModel group)Obtains users that belong to a specific group.Stream<UserModel>UserQueryProvider. getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults)Obtains users that belong to a specific group.default Stream<UserModel>UserQueryProvider. getRoleMembersStream(RealmModel realm, RoleModel role)Obtains users that have the specified role.default Stream<UserModel>UserQueryProvider. getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)Searches for users that have the specified role.default Stream<UserModel>UserQueryProvider. getUsersStream(RealmModel realm)Deprecated.UseUserQueryProvider.searchForUserStream(RealmModel, Map)with an empty params map instead.default Stream<UserModel>UserQueryProvider. getUsersStream(RealmModel realm, Integer firstResult, Integer maxResults)Deprecated.UseUserQueryProvider.searchForUserStream(RealmModel, Map, Integer, Integer)with an empty params map instead.Stream<UserModel>UserQueryProvider. searchForUserByUserAttributeStream(RealmModel realm, String attrName, String attrValue)Searches for users that have a specific attribute with a specific value.default Stream<UserModel>UserQueryProvider. searchForUserStream(RealmModel realm, String search)Searches for users whose username, email, first name or last name contain any of the strings insearchseparated by whitespace.Stream<UserModel>UserQueryProvider. searchForUserStream(RealmModel realm, String search, Integer firstResult, Integer maxResults)Searches for users whose username, email, first name or last name contain any of the strings insearchseparated by whitespace.default Stream<UserModel>UserQueryProvider. searchForUserStream(RealmModel realm, Map<String,String> params)Searches for user by parameter.Stream<UserModel>UserQueryProvider. searchForUserStream(RealmModel realm, Map<String,String> params, Integer firstResult, Integer maxResults)Searches for user by parameter.Methods in org.keycloak.storage.user with parameters of type UserModel Modifier and Type Method Description booleanUserRegistrationProvider. removeUser(RealmModel realm, UserModel user)Called if user originated from this provider.Method parameters in org.keycloak.storage.user with type arguments of type UserModel Modifier and Type Method Description static intUserQueryProvider. countUsersInGroups(Stream<UserModel> users, Set<String> groupIds)Returns the number of users from the given list of users that are in at least one of the groups given in the groups set.
-