Modifier and Type | Method and Description |
---|---|
CredentialModel |
UserCredentialStore.createCredential(RealmModel realm,
UserModel user,
CredentialModel cred) |
void |
CredentialInputUpdater.disableCredentialType(RealmModel realm,
UserModel user,
String credentialType) |
Set<String> |
CredentialInputUpdater.getDisableableCredentialTypes(RealmModel realm,
UserModel user)
Returns a set of credential types that can be disabled by disableCredentialType() method
|
CredentialModel |
UserCredentialStore.getStoredCredentialById(RealmModel realm,
UserModel user,
String id) |
CredentialModel |
UserCredentialStore.getStoredCredentialByNameAndType(RealmModel realm,
UserModel user,
String name,
String type) |
List<CredentialModel> |
UserCredentialStore.getStoredCredentials(RealmModel realm,
UserModel user) |
List<CredentialModel> |
UserCredentialStore.getStoredCredentialsByType(RealmModel realm,
UserModel user,
String type) |
boolean |
CredentialInputValidator.isConfiguredFor(RealmModel realm,
UserModel user,
String credentialType) |
boolean |
CredentialInputValidator.isValid(RealmModel realm,
UserModel user,
CredentialInput input) |
boolean |
UserCredentialStore.removeStoredCredential(RealmModel realm,
UserModel user,
String id) |
boolean |
CredentialInputUpdater.updateCredential(RealmModel realm,
UserModel user,
CredentialInput input) |
void |
UserCredentialStore.updateCredential(RealmModel realm,
UserModel user,
CredentialModel cred) |
Modifier and Type | Method and Description |
---|---|
Locale |
LocaleSelectorProvider.resolveLocale(RealmModel realm,
UserModel user)
Resolve the locale which should be used for the request
|
Modifier and Type | Method and Description |
---|---|
UserModel |
UserProvider.addUser(RealmModel realm,
String id,
String username,
boolean addDefaultRoles,
boolean addDefaultRequiredActions)
only used for local storage
|
UserModel |
CredentialValidationOutput.getAuthenticatedUser() |
UserModel |
UserProvider.getServiceAccount(ClientModel client) |
UserModel |
UserSessionModel.getUser() |
UserModel |
UserModel.UserRemovedEvent.getUser() |
UserModel |
UserProvider.getUserByFederatedIdentity(FederatedIdentityModel socialLink,
RealmModel realm) |
Modifier and Type | Method and Description |
---|---|
List<UserModel> |
UserProvider.getUsers(RealmModel realm,
boolean includeServiceAccounts) |
List<UserModel> |
UserProvider.getUsers(RealmModel realm,
int firstResult,
int maxResults,
boolean includeServiceAccounts) |
Modifier and Type | Method and Description |
---|---|
void |
UserProvider.addFederatedIdentity(RealmModel realm,
UserModel user,
FederatedIdentityModel socialLink) |
UserSessionModel |
UserSessionProvider.createUserSession(RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
UserSessionModel |
UserSessionProvider.createUserSession(String id,
RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
void |
UserCredentialManager.disableCredentialType(RealmModel realm,
UserModel user,
String credentialType)
Calls disableCredential on UserStorageProvider and UserFederationProviders first, then loop through
each CredentialProvider.
|
Set<String> |
UserCredentialManager.getDisableableCredentialTypes(RealmModel realm,
UserModel user)
Returns a set of credential types that can be disabled by disableCredentialType() method
|
Set<FederatedIdentityModel> |
UserProvider.getFederatedIdentities(UserModel user,
RealmModel realm) |
FederatedIdentityModel |
UserProvider.getFederatedIdentity(UserModel user,
String socialProvider,
RealmModel realm) |
String |
OTPPolicy.getKeyURI(RealmModel realm,
UserModel user,
String secret)
Constructs the
otpauth:// URI based on the Key-Uri-Format. |
int |
UserProvider.getNotBeforeOfUser(RealmModel realm,
UserModel user) |
List<UserSessionModel> |
UserSessionProvider.getOfflineUserSessions(RealmModel realm,
UserModel user) |
List<UserSessionModel> |
UserSessionProvider.getUserSessions(RealmModel realm,
UserModel user) |
boolean |
UserCredentialManager.isConfiguredFor(RealmModel realm,
UserModel user,
String type)
Checks to see if user has credential type configured.
|
boolean |
UserCredentialManager.isConfiguredLocally(RealmModel realm,
UserModel user,
String type)
Only loops through each CredentialProvider to see if credential type is configured for the user.
|
boolean |
UserCredentialManager.isValid(RealmModel realm,
UserModel user,
CredentialInput... inputs)
Validates list of credentials.
|
boolean |
UserCredentialManager.isValid(RealmModel realm,
UserModel user,
List<CredentialInput> inputs)
Validates list of credentials.
|
boolean |
UserProvider.removeFederatedIdentity(RealmModel realm,
UserModel user,
String socialProvider) |
boolean |
UserManager.removeUser(RealmModel realm,
UserModel user) |
boolean |
UserManager.removeUser(RealmModel realm,
UserModel user,
UserProvider userProvider) |
void |
UserSessionProvider.removeUserSessions(RealmModel realm,
UserModel user) |
Locale |
KeycloakContext.resolveLocale(UserModel user) |
void |
UserSessionModel.restartSession(RealmModel realm,
UserModel user,
String loginUsername,
String ipAddress,
String authMethod,
boolean rememberMe,
String brokerSessionId,
String brokerUserId) |
void |
UserProvider.setNotBeforeForUser(RealmModel realm,
UserModel user,
int notBefore) |
void |
UserCredentialManager.updateCredential(RealmModel realm,
UserModel user,
CredentialInput input)
Updates a credential.
|
void |
UserProvider.updateFederatedIdentity(RealmModel realm,
UserModel federatedUser,
FederatedIdentityModel federatedIdentityModel) |
Constructor and Description |
---|
CredentialValidationOutput(UserModel authenticatedUser,
CredentialValidationOutput.Status authStatus,
Map<String,String> state) |
Modifier and Type | Interface and Description |
---|---|
interface |
CachedUserModel
Cached users will implement this interface
|
Modifier and Type | Method and Description |
---|---|
UserModel |
CachedUserModel.getDelegateForUpdate()
Invalidates the cache for this user and returns a delegate that represents the actual data provider
|
Modifier and Type | Method and Description |
---|---|
void |
UserCache.evict(RealmModel realm,
UserModel user)
Evict user from cache.
|
void |
OnUserCache.onCache(RealmModel realm,
CachedUserModel user,
UserModel delegate) |
Modifier and Type | Class and Description |
---|---|
class |
UserModelDelegate
Delegation pattern.
|
Modifier and Type | Field and Description |
---|---|
protected UserModel |
UserModelDelegate.delegate |
Modifier and Type | Method and Description |
---|---|
UserModel |
UserModelDelegate.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static void |
DefaultRoles.addDefaultRoles(RealmModel realm,
UserModel userModel) |
static Set<RoleModel> |
RoleUtils.getDeepUserRoleMappings(UserModel user) |
Constructor and Description |
---|
UserModelDelegate(UserModel delegate) |
Modifier and Type | Method and Description |
---|---|
PolicyError |
PasswordPolicyProvider.validate(RealmModel realm,
UserModel user,
String password) |
Modifier and Type | Method and Description |
---|---|
UserModel |
AuthenticationSessionModel.getAuthenticatedUser() |
Modifier and Type | Method and Description |
---|---|
void |
AuthenticationSessionModel.setAuthenticatedUser(UserModel user) |
Modifier and Type | Method and Description |
---|---|
static boolean |
StorageId.isLocalStorage(UserModel user) |
static String |
StorageId.resolveProviderId(UserModel user) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractUserAdapter
This abstract class provides implementations for everything but getUsername().
|
class |
AbstractUserAdapterFederatedStorage
Assumes everything is managed by federated storage except for username.
|
Modifier and Type | Method and Description |
---|---|
void |
UserFederatedStorageProvider.preRemove(RealmModel realm,
UserModel user) |
Modifier and Type | Method and Description |
---|---|
UserModel |
UserRegistrationProvider.addUser(RealmModel realm,
String username)
All storage providers that implement this interface will be looped through.
|
UserModel |
UserLookupProvider.getUserByEmail(String email,
RealmModel realm) |
UserModel |
UserLookupProvider.getUserById(String id,
RealmModel realm) |
UserModel |
UserLookupProvider.getUserByUsername(String username,
RealmModel realm) |
UserModel |
ImportedUserValidation.validate(RealmModel realm,
UserModel user)
If this method returns null, then the user in local storage will be removed
|
Modifier and Type | Method and Description |
---|---|
List<UserModel> |
UserQueryProvider.getGroupMembers(RealmModel realm,
GroupModel group)
Get users that belong to a specific group.
|
List<UserModel> |
UserQueryProvider.getGroupMembers(RealmModel realm,
GroupModel group,
int firstResult,
int maxResults)
Get users that belong to a specific group.
|
default List<UserModel> |
UserQueryProvider.getRoleMembers(RealmModel realm,
RoleModel role)
Get users that belong to a specific role.
|
default List<UserModel> |
UserQueryProvider.getRoleMembers(RealmModel realm,
RoleModel role,
int firstResult,
int maxResults)
Search for users that have a specific role with a specific roleId.
|
List<UserModel> |
UserQueryProvider.getUsers(RealmModel realm) |
List<UserModel> |
UserQueryProvider.getUsers(RealmModel realm,
int firstResult,
int maxResults) |
List<UserModel> |
UserQueryProvider.searchForUser(Map<String,String> params,
RealmModel realm)
Search for user by parameter.
|
List<UserModel> |
UserQueryProvider.searchForUser(Map<String,String> params,
RealmModel realm,
int firstResult,
int maxResults)
Search for user by parameter.
|
List<UserModel> |
UserQueryProvider.searchForUser(String search,
RealmModel realm)
Search for users with username, email or first + last name that is like search string.
|
List<UserModel> |
UserQueryProvider.searchForUser(String search,
RealmModel realm,
int firstResult,
int maxResults)
Search for users with username, email or first + last name that is like search string.
|
List<UserModel> |
UserQueryProvider.searchForUserByUserAttribute(String attrName,
String attrValue,
RealmModel realm)
Search for users that have a specific attribute with a specific value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
UserRegistrationProvider.removeUser(RealmModel realm,
UserModel user)
Called if user originated from this provider.
|
UserModel |
ImportedUserValidation.validate(RealmModel realm,
UserModel user)
If this method returns null, then the user in local storage will be removed
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.