Package org.keycloak.models.map.realm
Class MapRealmAdapter
java.lang.Object
org.keycloak.models.map.realm.AbstractRealmModel<MapRealmEntity>
org.keycloak.models.map.realm.MapRealmAdapter
- All Implemented Interfaces:
- RealmModel,- RoleContainerModel
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.keycloak.models.RealmModelRealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEvent, RealmModel.SearchableFieldsNested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModelRoleContainerModel.RoleRemovedEvent
- 
Field SummaryFields inherited from class org.keycloak.models.map.realm.AbstractRealmModelentity, sessionFields inherited from interface org.keycloak.models.RealmModelCOMPARE_BY_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddClientScope(String name) Creates new client scope with the given name.addClientScope(String id, String name) Creates new client scope with the given internal ID and name.addComponentModel(ComponentModel model) Adds component model.voidaddDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope) Adds given client scope among default/optional client scopes of this realm.voidaddDefaultGroup(GroupModel group) voidvoidaddRequiredCredential(String cred) createClientInitialAccessModel(int expiration, int count) createGroup(String id, String name, GroupModel toParent) voidcreateOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) Creates or updates the realm-specific localization texts for the given locale.voidintintintintintintintintgetActionTokenGeneratedByUserLifespan(String actionTokenType) Returns clients which are always displayed in the admin console as a stream.getAttribute(String name) Returns sorted (according to priority)AuthenticationExecutionModelas a stream.getAuthenticationFlowById(String flowId) Returns authentications flows as a stream.Returns authentication configs as a stream.getClientByClientId(String clientId) getClientById(String id) intintReturns all client scopes of this realm as a stream.intintReturns clients as a stream.getClientsStream(Integer firstResult, Integer maxResults) Returns clients as a stream.getComponent(String id) Returns stream of component models.getComponentsStream(String parentId) Returns stream of ComponentModels for specific parentId.getComponentsStream(String parentId, String providerType) Returns stream of ComponentModels for specific parentId and providerType.getDefaultClientScopesStream(boolean defaultScope) Returns default client scopes of this realm either default ones or optional ones.Returns default groups as a stream.Returns default realm role.Returns enabled event types as a stream.longReturns events listeners as a stream.intgetFlowByAlias(String alias) getGroupById(String id) getGroupsCount(Boolean onlyTopGroups) getGroupsCountByNameContaining(String search) Returns groups as a stream.getId()getIdentityProviderByAlias(String alias) getIdentityProviderMapperByName(String brokerAlias, String name) getIdentityProviderMappersByAliasStream(String brokerAlias) Returns identity provider mappers by the provided alias as a stream.Returns identity provider mappers as a stream.Returns identity providers as a stream.intintintgetName()intTime in seconds since epocintintlongintReturns sortedRequiredActionProviderModelas a stream.Returns required credentials as a stream.getRoleById(String id) Returns available roles as a stream.getRolesStream(Integer firstResult, Integer maxResults) Returns available roles as a stream.intintintintReturns supported locales as a stream.Returns top level groups as a stream.getTopLevelGroupsStream(Integer first, Integer max) Returns top level groups as a stream.This method will return a map with all the lifespans available or an empty map, but never null.intAdds component model.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidmoveGroup(GroupModel group, GroupModel toParent) voidremoveAttribute(String name) voidvoidvoidbooleanremoveClient(String id) voidbooleanRemoves client scope with givenidfrom this realm.voidremoveComponent(ComponentModel component) Removes given component.voidremoveComponents(String parentId) Removes all components with givenparentIdvoidremoveDefaultClientScope(ClientScopeModel clientScope) Removes given client scope from default or optional client scopes of this realm.voidremoveDefaultGroup(GroupModel group) booleanremoveGroup(GroupModel group) voidvoidbooleanremoveRealmLocalizationTexts(String locale) voidbooleanremoveRole(RoleModel role) searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults) Search for clients by provided client's id.searchForRolesStream(String search, Integer first, Integer max) Searches roles by the given name.voidsetAccessCodeLifespan(int seconds) voidsetAccessCodeLifespanLogin(int seconds) voidsetAccessCodeLifespanUserAction(int seconds) voidsetAccessTokenLifespan(int seconds) voidsetAccessTokenLifespanForImplicitFlow(int seconds) voidsetAccountTheme(String name) voidsetActionTokenGeneratedByAdminLifespan(int seconds) voidsetActionTokenGeneratedByUserLifespan(int seconds) voidsetActionTokenGeneratedByUserLifespan(String actionTokenType, Integer seconds) voidsetAdminEventsDetailsEnabled(boolean enabled) voidsetAdminEventsEnabled(boolean enabled) voidsetAdminTheme(String name) voidsetAttribute(String name, String value) voidvoidsetBrowserSecurityHeaders(Map<String, String> headers) voidsetBruteForceProtected(boolean value) voidvoidsetClientOfflineSessionIdleTimeout(int seconds) voidsetClientOfflineSessionMaxLifespan(int seconds) voidsetClientSessionIdleTimeout(int seconds) voidsetClientSessionMaxLifespan(int seconds) voidsetDefaultLocale(String locale) voidsetDefaultRole(RoleModel role) Sets default role for this realmvoidsetDefaultSignatureAlgorithm(String defaultSignatureAlgorithm) voidvoidsetDisplayName(String displayName) voidsetDisplayNameHtml(String displayNameHtml) voidvoidsetDuplicateEmailsAllowed(boolean duplicateEmailsAllowed) voidsetEditUsernameAllowed(boolean editUsernameAllowed) voidsetEmailTheme(String name) voidsetEnabled(boolean enabled) voidsetEnabledEventTypes(Set<String> enabledEventTypes) voidsetEventsEnabled(boolean enabled) voidsetEventsExpiration(long expiration) voidsetEventsListeners(Set<String> listeners) voidsetFailureFactor(int failureFactor) voidsetInternationalizationEnabled(boolean enabled) voidsetLoginTheme(String name) voidsetLoginWithEmailAllowed(boolean loginWithEmailAllowed) voidsetMasterAdminClient(ClientModel client) voidsetMaxDeltaTimeSeconds(int val) voidsetMaxFailureWaitSeconds(int val) voidsetMinimumQuickLoginWaitSeconds(int val) voidvoidsetNotBefore(int notBefore) voidsetOfflineSessionIdleTimeout(int seconds) voidsetOfflineSessionMaxLifespan(int seconds) voidsetOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled) voidsetOTPPolicy(OTPPolicy policy) voidsetPasswordPolicy(PasswordPolicy policy) voidsetPermanentLockout(boolean val) voidsetQuickLoginCheckMilliSeconds(long val) voidsetRefreshTokenMaxReuse(int revokeRefreshTokenCount) voidsetRegistrationAllowed(boolean registrationAllowed) voidsetRegistrationEmailAsUsername(boolean registrationEmailAsUsername) voidvoidsetRememberMe(boolean rememberMe) voidvoidsetResetPasswordAllowed(boolean resetPasswordAllowed) voidsetRevokeRefreshToken(boolean revokeRefreshToken) voidsetSmtpConfig(Map<String, String> smtpConfig) voidsetSslRequired(SslRequired sslRequired) voidsetSsoSessionIdleTimeout(int seconds) voidsetSsoSessionIdleTimeoutRememberMe(int seconds) voidsetSsoSessionMaxLifespan(int seconds) voidsetSsoSessionMaxLifespanRememberMe(int seconds) voidsetSupportedLocales(Set<String> locales) voidsetUserManagedAccessAllowed(boolean userManagedAccessAllowed) voidsetVerifyEmail(boolean verifyEmail) voidsetWaitIncrementSeconds(int val) voidsetWebAuthnPolicy(WebAuthnPolicy policy) Set WebAuthn policy for 2-factor authenticationvoidSet WebAuthn passwordless policy below.toString()voidvoidvoidvoidupdateComponent(ComponentModel component) Updates component model.voidupdateIdentityProvider(IdentityProviderModel identityProvider) voidvoidvoidupdateRequiredCredentials(Set<String> credentials) Methods inherited from class org.keycloak.models.map.realm.AbstractRealmModelequals, hashCodeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.models.RealmModeladdToDefaultRoles, createGroup, createGroup, createGroup, getAttribute, getAttribute, getAttribute, getStorageProviders, setAttribute, setAttribute, setAttribute
- 
Constructor Details- 
MapRealmAdapter
 
- 
- 
Method Details- 
getId- Specified by:
- getIdin interface- RealmModel
- Specified by:
- getIdin interface- RoleContainerModel
 
- 
getName- Specified by:
- getNamein interface- RealmModel
 
- 
setName- Specified by:
- setNamein interface- RealmModel
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- RealmModel
 
- 
setDisplayName- Specified by:
- setDisplayNamein interface- RealmModel
 
- 
getDisplayNameHtml- Specified by:
- getDisplayNameHtmlin interface- RealmModel
 
- 
setDisplayNameHtml- Specified by:
- setDisplayNameHtmlin interface- RealmModel
 
- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- RealmModel
 
- 
setEnabledpublic void setEnabled(boolean enabled) - Specified by:
- setEnabledin interface- RealmModel
 
- 
getSslRequired- Specified by:
- getSslRequiredin interface- RealmModel
 
- 
setSslRequired- Specified by:
- setSslRequiredin interface- RealmModel
 
- 
isRegistrationAllowedpublic boolean isRegistrationAllowed()- Specified by:
- isRegistrationAllowedin interface- RealmModel
 
- 
setRegistrationAllowedpublic void setRegistrationAllowed(boolean registrationAllowed) - Specified by:
- setRegistrationAllowedin interface- RealmModel
 
- 
isRegistrationEmailAsUsernamepublic boolean isRegistrationEmailAsUsername()- Specified by:
- isRegistrationEmailAsUsernamein interface- RealmModel
 
- 
setRegistrationEmailAsUsernamepublic void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername) - Specified by:
- setRegistrationEmailAsUsernamein interface- RealmModel
 
- 
isRememberMepublic boolean isRememberMe()- Specified by:
- isRememberMein interface- RealmModel
 
- 
setRememberMepublic void setRememberMe(boolean rememberMe) - Specified by:
- setRememberMein interface- RealmModel
 
- 
isEditUsernameAllowedpublic boolean isEditUsernameAllowed()- Specified by:
- isEditUsernameAllowedin interface- RealmModel
 
- 
setEditUsernameAllowedpublic void setEditUsernameAllowed(boolean editUsernameAllowed) - Specified by:
- setEditUsernameAllowedin interface- RealmModel
 
- 
isUserManagedAccessAllowedpublic boolean isUserManagedAccessAllowed()- Specified by:
- isUserManagedAccessAllowedin interface- RealmModel
 
- 
setUserManagedAccessAllowedpublic void setUserManagedAccessAllowed(boolean userManagedAccessAllowed) - Specified by:
- setUserManagedAccessAllowedin interface- RealmModel
 
- 
setAttribute- Specified by:
- setAttributein interface- RealmModel
 
- 
removeAttribute- Specified by:
- removeAttributein interface- RealmModel
 
- 
getAttribute- Specified by:
- getAttributein interface- RealmModel
 
- 
getAttributes- Specified by:
- getAttributesin interface- RealmModel
 
- 
isVerifyEmailpublic boolean isVerifyEmail()- Specified by:
- isVerifyEmailin interface- RealmModel
 
- 
setVerifyEmailpublic void setVerifyEmail(boolean verifyEmail) - Specified by:
- setVerifyEmailin interface- RealmModel
 
- 
isLoginWithEmailAllowedpublic boolean isLoginWithEmailAllowed()- Specified by:
- isLoginWithEmailAllowedin interface- RealmModel
 
- 
setLoginWithEmailAllowedpublic void setLoginWithEmailAllowed(boolean loginWithEmailAllowed) - Specified by:
- setLoginWithEmailAllowedin interface- RealmModel
 
- 
isDuplicateEmailsAllowedpublic boolean isDuplicateEmailsAllowed()- Specified by:
- isDuplicateEmailsAllowedin interface- RealmModel
 
- 
setDuplicateEmailsAllowedpublic void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed) - Specified by:
- setDuplicateEmailsAllowedin interface- RealmModel
 
- 
isResetPasswordAllowedpublic boolean isResetPasswordAllowed()- Specified by:
- isResetPasswordAllowedin interface- RealmModel
 
- 
setResetPasswordAllowedpublic void setResetPasswordAllowed(boolean resetPasswordAllowed) - Specified by:
- setResetPasswordAllowedin interface- RealmModel
 
- 
isRevokeRefreshTokenpublic boolean isRevokeRefreshToken()- Specified by:
- isRevokeRefreshTokenin interface- RealmModel
 
- 
setRevokeRefreshTokenpublic void setRevokeRefreshToken(boolean revokeRefreshToken) - Specified by:
- setRevokeRefreshTokenin interface- RealmModel
 
- 
getRefreshTokenMaxReusepublic int getRefreshTokenMaxReuse()- Specified by:
- getRefreshTokenMaxReusein interface- RealmModel
 
- 
setRefreshTokenMaxReusepublic void setRefreshTokenMaxReuse(int revokeRefreshTokenCount) - Specified by:
- setRefreshTokenMaxReusein interface- RealmModel
 
- 
getSsoSessionIdleTimeoutpublic int getSsoSessionIdleTimeout()- Specified by:
- getSsoSessionIdleTimeoutin interface- RealmModel
 
- 
setSsoSessionIdleTimeoutpublic void setSsoSessionIdleTimeout(int seconds) - Specified by:
- setSsoSessionIdleTimeoutin interface- RealmModel
 
- 
getSsoSessionMaxLifespanpublic int getSsoSessionMaxLifespan()- Specified by:
- getSsoSessionMaxLifespanin interface- RealmModel
 
- 
setSsoSessionMaxLifespanpublic void setSsoSessionMaxLifespan(int seconds) - Specified by:
- setSsoSessionMaxLifespanin interface- RealmModel
 
- 
getSsoSessionIdleTimeoutRememberMepublic int getSsoSessionIdleTimeoutRememberMe()- Specified by:
- getSsoSessionIdleTimeoutRememberMein interface- RealmModel
 
- 
setSsoSessionIdleTimeoutRememberMepublic void setSsoSessionIdleTimeoutRememberMe(int seconds) - Specified by:
- setSsoSessionIdleTimeoutRememberMein interface- RealmModel
 
- 
getSsoSessionMaxLifespanRememberMepublic int getSsoSessionMaxLifespanRememberMe()- Specified by:
- getSsoSessionMaxLifespanRememberMein interface- RealmModel
 
- 
setSsoSessionMaxLifespanRememberMepublic void setSsoSessionMaxLifespanRememberMe(int seconds) - Specified by:
- setSsoSessionMaxLifespanRememberMein interface- RealmModel
 
- 
getOfflineSessionIdleTimeoutpublic int getOfflineSessionIdleTimeout()- Specified by:
- getOfflineSessionIdleTimeoutin interface- RealmModel
 
- 
setOfflineSessionIdleTimeoutpublic void setOfflineSessionIdleTimeout(int seconds) - Specified by:
- setOfflineSessionIdleTimeoutin interface- RealmModel
 
- 
getAccessTokenLifespanpublic int getAccessTokenLifespan()- Specified by:
- getAccessTokenLifespanin interface- RealmModel
 
- 
getClientSessionIdleTimeoutpublic int getClientSessionIdleTimeout()- Specified by:
- getClientSessionIdleTimeoutin interface- RealmModel
 
- 
setClientSessionIdleTimeoutpublic void setClientSessionIdleTimeout(int seconds) - Specified by:
- setClientSessionIdleTimeoutin interface- RealmModel
 
- 
getClientSessionMaxLifespanpublic int getClientSessionMaxLifespan()- Specified by:
- getClientSessionMaxLifespanin interface- RealmModel
 
- 
setClientSessionMaxLifespanpublic void setClientSessionMaxLifespan(int seconds) - Specified by:
- setClientSessionMaxLifespanin interface- RealmModel
 
- 
getClientOfflineSessionIdleTimeoutpublic int getClientOfflineSessionIdleTimeout()- Specified by:
- getClientOfflineSessionIdleTimeoutin interface- RealmModel
 
- 
setClientOfflineSessionIdleTimeoutpublic void setClientOfflineSessionIdleTimeout(int seconds) - Specified by:
- setClientOfflineSessionIdleTimeoutin interface- RealmModel
 
- 
getClientOfflineSessionMaxLifespanpublic int getClientOfflineSessionMaxLifespan()- Specified by:
- getClientOfflineSessionMaxLifespanin interface- RealmModel
 
- 
setClientOfflineSessionMaxLifespanpublic void setClientOfflineSessionMaxLifespan(int seconds) - Specified by:
- setClientOfflineSessionMaxLifespanin interface- RealmModel
 
- 
setAccessTokenLifespanpublic void setAccessTokenLifespan(int seconds) - Specified by:
- setAccessTokenLifespanin interface- RealmModel
 
- 
getAccessTokenLifespanForImplicitFlowpublic int getAccessTokenLifespanForImplicitFlow()- Specified by:
- getAccessTokenLifespanForImplicitFlowin interface- RealmModel
 
- 
setAccessTokenLifespanForImplicitFlowpublic void setAccessTokenLifespanForImplicitFlow(int seconds) - Specified by:
- setAccessTokenLifespanForImplicitFlowin interface- RealmModel
 
- 
getAccessCodeLifespanpublic int getAccessCodeLifespan()- Specified by:
- getAccessCodeLifespanin interface- RealmModel
 
- 
setAccessCodeLifespanpublic void setAccessCodeLifespan(int seconds) - Specified by:
- setAccessCodeLifespanin interface- RealmModel
 
- 
getAccessCodeLifespanUserActionpublic int getAccessCodeLifespanUserAction()- Specified by:
- getAccessCodeLifespanUserActionin interface- RealmModel
 
- 
setAccessCodeLifespanUserActionpublic void setAccessCodeLifespanUserAction(int seconds) - Specified by:
- setAccessCodeLifespanUserActionin interface- RealmModel
 
- 
getAccessCodeLifespanLoginpublic int getAccessCodeLifespanLogin()- Specified by:
- getAccessCodeLifespanLoginin interface- RealmModel
 
- 
setAccessCodeLifespanLoginpublic void setAccessCodeLifespanLogin(int seconds) - Specified by:
- setAccessCodeLifespanLoginin interface- RealmModel
 
- 
getActionTokenGeneratedByAdminLifespanpublic int getActionTokenGeneratedByAdminLifespan()- Specified by:
- getActionTokenGeneratedByAdminLifespanin interface- RealmModel
 
- 
setActionTokenGeneratedByAdminLifespanpublic void setActionTokenGeneratedByAdminLifespan(int seconds) - Specified by:
- setActionTokenGeneratedByAdminLifespanin interface- RealmModel
 
- 
getActionTokenGeneratedByUserLifespanpublic int getActionTokenGeneratedByUserLifespan()- Specified by:
- getActionTokenGeneratedByUserLifespanin interface- RealmModel
 
- 
setActionTokenGeneratedByUserLifespanpublic void setActionTokenGeneratedByUserLifespan(int seconds) - Specified by:
- setActionTokenGeneratedByUserLifespanin interface- RealmModel
 
- 
getActionTokenGeneratedByUserLifespan- Specified by:
- getActionTokenGeneratedByUserLifespanin interface- RealmModel
 
- 
setActionTokenGeneratedByUserLifespan- Specified by:
- setActionTokenGeneratedByUserLifespanin interface- RealmModel
 
- 
getUserActionTokenLifespansDescription copied from interface:RealmModelThis method will return a map with all the lifespans available or an empty map, but never null.- Specified by:
- getUserActionTokenLifespansin interface- RealmModel
- Returns:
- map with user action token lifespans
 
- 
getRequiredCredentialsStreamDescription copied from interface:RealmModelReturns required credentials as a stream.- Specified by:
- getRequiredCredentialsStreamin interface- RealmModel
- Returns:
- Stream of RequiredCredentialModel. Never returnsnull.
 
- 
addRequiredCredential- Specified by:
- addRequiredCredentialin interface- RealmModel
 
- 
updateRequiredCredentials- Specified by:
- updateRequiredCredentialsin interface- RealmModel
 
- 
getPasswordPolicy- Specified by:
- getPasswordPolicyin interface- RealmModel
 
- 
setPasswordPolicy- Specified by:
- setPasswordPolicyin interface- RealmModel
 
- 
getOTPPolicy- Specified by:
- getOTPPolicyin interface- RealmModel
 
- 
setOTPPolicy- Specified by:
- setOTPPolicyin interface- RealmModel
 
- 
getRoleById- Specified by:
- getRoleByIdin interface- RealmModel
 
- 
getDefaultGroupsStreamDescription copied from interface:RealmModelReturns default groups as a stream.- Specified by:
- getDefaultGroupsStreamin interface- RealmModel
- Returns:
- Stream of GroupModel. Never returnsnull.
 
- 
addDefaultGroup- Specified by:
- addDefaultGroupin interface- RealmModel
 
- 
removeDefaultGroup- Specified by:
- removeDefaultGroupin interface- RealmModel
 
- 
getClientsStreamDescription copied from interface:RealmModelReturns clients as a stream.- Specified by:
- getClientsStreamin interface- RealmModel
- Returns:
- Stream of ClientModel. Never returnsnull.
 
- 
getClientsStreamDescription copied from interface:RealmModelReturns clients as a stream.- Specified by:
- getClientsStreamin interface- RealmModel
- Parameters:
- firstResult-- IntegerIndex of the first desired client. Ignored if negative or- null.
- maxResults-- IntegerMaximum number of returned clients. Ignored if negative or- null.
- Returns:
- Stream of ClientModel. Never returnsnull.
 
- 
getClientsCount- Specified by:
- getClientsCountin interface- RealmModel
 
- 
getAlwaysDisplayInConsoleClientsStreamDescription copied from interface:RealmModelReturns clients which are always displayed in the admin console as a stream.- Specified by:
- getAlwaysDisplayInConsoleClientsStreamin interface- RealmModel
- Returns:
- Stream of ClientModel. Never returnsnull.
 
- 
addClient- Specified by:
- addClientin interface- RealmModel
 
- 
addClient- Specified by:
- addClientin interface- RealmModel
 
- 
removeClient- Specified by:
- removeClientin interface- RealmModel
 
- 
getClientById- Specified by:
- getClientByIdin interface- RealmModel
 
- 
getClientByClientId- Specified by:
- getClientByClientIdin interface- RealmModel
 
- 
searchClientByClientIdStreampublic Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults) Description copied from interface:RealmModelSearch for clients by provided client's id.- Specified by:
- searchClientByClientIdStreamin interface- RealmModel
- Parameters:
- clientId-- StringId of the client.
- firstResult- Index of the first desired client. Ignored if negative or- null.
- maxResults- Maximum number of returned clients. Ignored if negative or- null.
- Returns:
- Stream of ClientModel. Never returnsnull.
 
- 
searchClientByAttributespublic Stream<ClientModel> searchClientByAttributes(Map<String, String> attributes, Integer firstResult, Integer maxResults) - Specified by:
- searchClientByAttributesin interface- RealmModel
 
- 
getSmtpConfig- Specified by:
- getSmtpConfigin interface- RealmModel
 
- 
setSmtpConfig- Specified by:
- setSmtpConfigin interface- RealmModel
 
- 
getBrowserFlow- Specified by:
- getBrowserFlowin interface- RealmModel
 
- 
setBrowserFlow- Specified by:
- setBrowserFlowin interface- RealmModel
 
- 
getRegistrationFlow- Specified by:
- getRegistrationFlowin interface- RealmModel
 
- 
setRegistrationFlow- Specified by:
- setRegistrationFlowin interface- RealmModel
 
- 
getDirectGrantFlow- Specified by:
- getDirectGrantFlowin interface- RealmModel
 
- 
setDirectGrantFlow- Specified by:
- setDirectGrantFlowin interface- RealmModel
 
- 
getResetCredentialsFlow- Specified by:
- getResetCredentialsFlowin interface- RealmModel
 
- 
setResetCredentialsFlow- Specified by:
- setResetCredentialsFlowin interface- RealmModel
 
- 
getClientAuthenticationFlow- Specified by:
- getClientAuthenticationFlowin interface- RealmModel
 
- 
setClientAuthenticationFlow- Specified by:
- setClientAuthenticationFlowin interface- RealmModel
 
- 
getDockerAuthenticationFlow- Specified by:
- getDockerAuthenticationFlowin interface- RealmModel
 
- 
setDockerAuthenticationFlow- Specified by:
- setDockerAuthenticationFlowin interface- RealmModel
 
- 
getAuthenticationFlowsStreamDescription copied from interface:RealmModelReturns authentications flows as a stream.- Specified by:
- getAuthenticationFlowsStreamin interface- RealmModel
- Returns:
- Stream of AuthenticationFlowModel. Never returnsnull.
 
- 
getFlowByAlias- Specified by:
- getFlowByAliasin interface- RealmModel
 
- 
addAuthenticationFlow- Specified by:
- addAuthenticationFlowin interface- RealmModel
 
- 
getAuthenticationFlowById- Specified by:
- getAuthenticationFlowByIdin interface- RealmModel
 
- 
removeAuthenticationFlow- Specified by:
- removeAuthenticationFlowin interface- RealmModel
 
- 
updateAuthenticationFlow- Specified by:
- updateAuthenticationFlowin interface- RealmModel
 
- 
getAuthenticationExecutionsStreamDescription copied from interface:RealmModelReturns sorted (according to priority)AuthenticationExecutionModelas a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
- getAuthenticationExecutionsStreamin interface- RealmModel
- Parameters:
- flowId-- StringId of the flow.
- Returns:
- Sorted stream of AuthenticationExecutionModel. Never returnsnull.
 
- 
getAuthenticationExecutionById- Specified by:
- getAuthenticationExecutionByIdin interface- RealmModel
 
- 
getAuthenticationExecutionByFlowId- Specified by:
- getAuthenticationExecutionByFlowIdin interface- RealmModel
 
- 
addAuthenticatorExecution- Specified by:
- addAuthenticatorExecutionin interface- RealmModel
 
- 
updateAuthenticatorExecution- Specified by:
- updateAuthenticatorExecutionin interface- RealmModel
 
- 
removeAuthenticatorExecution- Specified by:
- removeAuthenticatorExecutionin interface- RealmModel
 
- 
getAuthenticatorConfigsStreamDescription copied from interface:RealmModelReturns authentication configs as a stream.- Specified by:
- getAuthenticatorConfigsStreamin interface- RealmModel
- Returns:
- Stream of AuthenticatorConfigModel. Never returnsnull.
 
- 
addAuthenticatorConfig- Specified by:
- addAuthenticatorConfigin interface- RealmModel
 
- 
updateAuthenticatorConfig- Specified by:
- updateAuthenticatorConfigin interface- RealmModel
 
- 
removeAuthenticatorConfig- Specified by:
- removeAuthenticatorConfigin interface- RealmModel
 
- 
getAuthenticatorConfigById- Specified by:
- getAuthenticatorConfigByIdin interface- RealmModel
 
- 
getAuthenticatorConfigByAlias- Specified by:
- getAuthenticatorConfigByAliasin interface- RealmModel
 
- 
getRequiredActionProvidersStreamDescription copied from interface:RealmModelReturns sortedRequiredActionProviderModelas a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
- getRequiredActionProvidersStreamin interface- RealmModel
- Returns:
- Sorted stream of RequiredActionProviderModel. Never returnsnull.
 
- 
addRequiredActionProvider- Specified by:
- addRequiredActionProviderin interface- RealmModel
 
- 
updateRequiredActionProvider- Specified by:
- updateRequiredActionProviderin interface- RealmModel
 
- 
removeRequiredActionProvider- Specified by:
- removeRequiredActionProviderin interface- RealmModel
 
- 
getRequiredActionProviderById- Specified by:
- getRequiredActionProviderByIdin interface- RealmModel
 
- 
getRequiredActionProviderByAlias- Specified by:
- getRequiredActionProviderByAliasin interface- RealmModel
 
- 
getIdentityProvidersStreamDescription copied from interface:RealmModelReturns identity providers as a stream.- Specified by:
- getIdentityProvidersStreamin interface- RealmModel
- Returns:
- Stream of IdentityProviderModel. Never returnsnull.
 
- 
getIdentityProviderByAlias- Specified by:
- getIdentityProviderByAliasin interface- RealmModel
 
- 
addIdentityProvider- Specified by:
- addIdentityProviderin interface- RealmModel
 
- 
removeIdentityProviderByAlias- Specified by:
- removeIdentityProviderByAliasin interface- RealmModel
 
- 
updateIdentityProvider- Specified by:
- updateIdentityProviderin interface- RealmModel
 
- 
getIdentityProviderMappersStreamDescription copied from interface:RealmModelReturns identity provider mappers as a stream.- Specified by:
- getIdentityProviderMappersStreamin interface- RealmModel
- Returns:
- Stream of IdentityProviderMapperModel. Never returnsnull.
 
- 
getIdentityProviderMappersByAliasStreampublic Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias) Description copied from interface:RealmModelReturns identity provider mappers by the provided alias as a stream.- Specified by:
- getIdentityProviderMappersByAliasStreamin interface- RealmModel
- Parameters:
- brokerAlias-- StringBroker's alias to filter results.
- Returns:
- Stream of IdentityProviderMapperModelNever returnsnull.
 
- 
addIdentityProviderMapper- Specified by:
- addIdentityProviderMapperin interface- RealmModel
 
- 
removeIdentityProviderMapper- Specified by:
- removeIdentityProviderMapperin interface- RealmModel
 
- 
updateIdentityProviderMapper- Specified by:
- updateIdentityProviderMapperin interface- RealmModel
 
- 
getIdentityProviderMapperById- Specified by:
- getIdentityProviderMapperByIdin interface- RealmModel
 
- 
getIdentityProviderMapperByName- Specified by:
- getIdentityProviderMapperByNamein interface- RealmModel
 
- 
addComponentModelDescription copied from interface:RealmModelAdds component model. Will call onCreate() method of ComponentFactory- Specified by:
- addComponentModelin interface- RealmModel
- Returns:
 
- 
importComponentModelDescription copied from interface:RealmModelAdds component model. Will NOT call onCreate() method of ComponentFactory- Specified by:
- importComponentModelin interface- RealmModel
- Returns:
 
- 
updateComponentDescription copied from interface:RealmModelUpdates component model. Will call onUpdate() method of ComponentFactory- Specified by:
- updateComponentin interface- RealmModel
- Parameters:
- component- to be updated
 
- 
removeComponentDescription copied from interface:RealmModelRemoves given component. Will call preRemove() method of ComponentFactory. Also callsthis.removeComponents(component.getId()).- Specified by:
- removeComponentin interface- RealmModel
- Parameters:
- component- to be removed
 
- 
removeComponentsDescription copied from interface:RealmModelRemoves all components with givenparentId- Specified by:
- removeComponentsin interface- RealmModel
- Parameters:
- parentId-- Stringid of parent
 
- 
getComponentsStreamDescription copied from interface:RealmModelReturns stream of component models.- Specified by:
- getComponentsStreamin interface- RealmModel
- Returns:
- Stream of ComponentModel. Never returnsnull.
 
- 
getComponentsStreamDescription copied from interface:RealmModelReturns stream of ComponentModels for specific parentId.- Specified by:
- getComponentsStreamin interface- RealmModel
- Parameters:
- parentId-- Stringid of parent
- Returns:
- Stream of ComponentModel. Never returnsnull.
 
- 
getComponentsStreamDescription copied from interface:RealmModelReturns stream of ComponentModels for specific parentId and providerType.- Specified by:
- getComponentsStreamin interface- RealmModel
- Parameters:
- parentId-- Stringid of parent
- providerType-- Stringtype of provider
- Returns:
- Stream of ComponentModel. Never returnsnull.
 
- 
getComponent- Specified by:
- getComponentin interface- RealmModel
 
- 
getLoginTheme- Specified by:
- getLoginThemein interface- RealmModel
 
- 
setLoginTheme- Specified by:
- setLoginThemein interface- RealmModel
 
- 
getAccountTheme- Specified by:
- getAccountThemein interface- RealmModel
 
- 
setAccountTheme- Specified by:
- setAccountThemein interface- RealmModel
 
- 
getAdminTheme- Specified by:
- getAdminThemein interface- RealmModel
 
- 
setAdminTheme- Specified by:
- setAdminThemein interface- RealmModel
 
- 
getEmailTheme- Specified by:
- getEmailThemein interface- RealmModel
 
- 
setEmailTheme- Specified by:
- setEmailThemein interface- RealmModel
 
- 
getNotBeforepublic int getNotBefore()Description copied from interface:RealmModelTime in seconds since epoc- Specified by:
- getNotBeforein interface- RealmModel
- Returns:
 
- 
setNotBeforepublic void setNotBefore(int notBefore) - Specified by:
- setNotBeforein interface- RealmModel
 
- 
isEventsEnabledpublic boolean isEventsEnabled()- Specified by:
- isEventsEnabledin interface- RealmModel
 
- 
setEventsEnabledpublic void setEventsEnabled(boolean enabled) - Specified by:
- setEventsEnabledin interface- RealmModel
 
- 
getEventsExpirationpublic long getEventsExpiration()- Specified by:
- getEventsExpirationin interface- RealmModel
 
- 
setEventsExpirationpublic void setEventsExpiration(long expiration) - Specified by:
- setEventsExpirationin interface- RealmModel
 
- 
getEventsListenersStreamDescription copied from interface:RealmModelReturns events listeners as a stream.- Specified by:
- getEventsListenersStreamin interface- RealmModel
- Returns:
- Stream of String. Never returnsnull.
 
- 
setEventsListeners- Specified by:
- setEventsListenersin interface- RealmModel
 
- 
getEnabledEventTypesStreamDescription copied from interface:RealmModelReturns enabled event types as a stream.- Specified by:
- getEnabledEventTypesStreamin interface- RealmModel
- Returns:
- Stream of String. Never returnsnull.
 
- 
setEnabledEventTypes- Specified by:
- setEnabledEventTypesin interface- RealmModel
 
- 
isAdminEventsEnabledpublic boolean isAdminEventsEnabled()- Specified by:
- isAdminEventsEnabledin interface- RealmModel
 
- 
setAdminEventsEnabledpublic void setAdminEventsEnabled(boolean enabled) - Specified by:
- setAdminEventsEnabledin interface- RealmModel
 
- 
isAdminEventsDetailsEnabledpublic boolean isAdminEventsDetailsEnabled()- Specified by:
- isAdminEventsDetailsEnabledin interface- RealmModel
 
- 
setAdminEventsDetailsEnabledpublic void setAdminEventsDetailsEnabled(boolean enabled) - Specified by:
- setAdminEventsDetailsEnabledin interface- RealmModel
 
- 
getMasterAdminClient- Specified by:
- getMasterAdminClientin interface- RealmModel
 
- 
setMasterAdminClient- Specified by:
- setMasterAdminClientin interface- RealmModel
 
- 
getDefaultRoleDescription copied from interface:RealmModelReturns default realm role. All both realm and client default roles are assigned as composite of this role.- Specified by:
- getDefaultRolein interface- RealmModel
- Returns:
- Default role of this realm
 
- 
setDefaultRoleDescription copied from interface:RealmModelSets default role for this realm- Specified by:
- setDefaultRolein interface- RealmModel
- Parameters:
- role- to be set
 
- 
isIdentityFederationEnabledpublic boolean isIdentityFederationEnabled()- Specified by:
- isIdentityFederationEnabledin interface- RealmModel
 
- 
isInternationalizationEnabledpublic boolean isInternationalizationEnabled()- Specified by:
- isInternationalizationEnabledin interface- RealmModel
 
- 
setInternationalizationEnabledpublic void setInternationalizationEnabled(boolean enabled) - Specified by:
- setInternationalizationEnabledin interface- RealmModel
 
- 
getSupportedLocalesStreamDescription copied from interface:RealmModelReturns supported locales as a stream.- Specified by:
- getSupportedLocalesStreamin interface- RealmModel
- Returns:
- Stream of String. Never returnsnull.
 
- 
setSupportedLocales- Specified by:
- setSupportedLocalesin interface- RealmModel
 
- 
getDefaultLocale- Specified by:
- getDefaultLocalein interface- RealmModel
 
- 
setDefaultLocale- Specified by:
- setDefaultLocalein interface- RealmModel
 
- 
createGroup- Specified by:
- createGroupin interface- RealmModel
 
- 
getGroupById- Specified by:
- getGroupByIdin interface- RealmModel
 
- 
getGroupsStreamDescription copied from interface:RealmModelReturns groups as a stream.- Specified by:
- getGroupsStreamin interface- RealmModel
- Returns:
- Stream of GroupModel. Never returnsnull.
 
- 
getGroupsCount- Specified by:
- getGroupsCountin interface- RealmModel
 
- 
getGroupsCountByNameContaining- Specified by:
- getGroupsCountByNameContainingin interface- RealmModel
 
- 
getTopLevelGroupsStreamDescription copied from interface:RealmModelReturns top level groups as a stream.- Specified by:
- getTopLevelGroupsStreamin interface- RealmModel
- Returns:
- Stream of GroupModel. Never returnsnull.
 
- 
getTopLevelGroupsStreamDescription copied from interface:RealmModelReturns top level groups as a stream.- Specified by:
- getTopLevelGroupsStreamin interface- RealmModel
- Parameters:
- first-- IntegerIndex of the first desired group. Ignored if negative or- null.
- max-- IntegerMaximum number of returned groups. Ignored if negative or- null.
- Returns:
- Stream of GroupModel. Never returnsnull.
 
- 
removeGroup- Specified by:
- removeGroupin interface- RealmModel
 
- 
moveGroup- Specified by:
- moveGroupin interface- RealmModel
 
- 
getClientScopesStreamDescription copied from interface:RealmModelReturns all client scopes of this realm as a stream.- Specified by:
- getClientScopesStreamin interface- RealmModel
- Returns:
- Stream of ClientScopeModel. Never returnsnull.
 
- 
addClientScopeDescription copied from interface:RealmModelCreates new client scope with the given name. Internal ID is created automatically. If given name contains spaces, those are replaced by underscores.- Specified by:
- addClientScopein interface- RealmModel
- Parameters:
- name-- Stringname of the client scope.
- Returns:
- Model of the created client scope.
 
- 
addClientScopeDescription copied from interface:RealmModelCreates new client scope with the given internal ID and name. If given name contains spaces, those are replaced by underscores.- Specified by:
- addClientScopein interface- RealmModel
- Parameters:
- id-- Stringid of the client scope.
- name-- Stringname of the client scope.
- Returns:
- Model of the created client scope.
 
- 
removeClientScopeDescription copied from interface:RealmModelRemoves client scope with givenidfrom this realm.- Specified by:
- removeClientScopein interface- RealmModel
- Parameters:
- id- of the client scope
- Returns:
- true if the realm contained the scope and the removal was successful, false otherwise
 
- 
getClientScopeById- Specified by:
- getClientScopeByIdin interface- RealmModel
- Parameters:
- id- of the client scope
- Returns:
- Client scope with the given id, ornullwhen the scope does not exist.
 
- 
addDefaultClientScopeDescription copied from interface:RealmModelAdds given client scope among default/optional client scopes of this realm. The scope will be assigned to each new client.- Specified by:
- addDefaultClientScopein interface- RealmModel
- Parameters:
- clientScope- to be added
- defaultScope- if- truethe scope will be added among default client scopes, if- falseit will be added among optional client scopes
 
- 
removeDefaultClientScopeDescription copied from interface:RealmModelRemoves given client scope from default or optional client scopes of this realm.- Specified by:
- removeDefaultClientScopein interface- RealmModel
- Parameters:
- clientScope- to be removed
 
- 
getDefaultClientScopesStreamDescription copied from interface:RealmModelReturns default client scopes of this realm either default ones or optional ones.- Specified by:
- getDefaultClientScopesStreamin interface- RealmModel
- Parameters:
- defaultScope- if- truedefault client scopes are returned, if- falseoptional client scopes are returned.
- Returns:
- Stream of ClientScopeModel. Never returnsnull.
 
- 
createOrUpdateRealmLocalizationTextspublic void createOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) Description copied from interface:RealmModelCreates or updates the realm-specific localization texts for the given locale. This method will not delete any text. It updates texts, which are already stored or create new ones if the key does not exist yet.- Specified by:
- createOrUpdateRealmLocalizationTextsin interface- RealmModel
 
- 
removeRealmLocalizationTexts- Specified by:
- removeRealmLocalizationTextsin interface- RealmModel
 
- 
getRealmLocalizationTexts- Specified by:
- getRealmLocalizationTextsin interface- RealmModel
 
- 
getRealmLocalizationTextsByLocale- Specified by:
- getRealmLocalizationTextsByLocalein interface- RealmModel
 
- 
getRole- Specified by:
- getRolein interface- RoleContainerModel
 
- 
addRole- Specified by:
- addRolein interface- RoleContainerModel
 
- 
addRole- Specified by:
- addRolein interface- RoleContainerModel
 
- 
removeRole- Specified by:
- removeRolein interface- RoleContainerModel
 
- 
getRolesStreamDescription copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
- getRolesStreamin interface- RoleContainerModel
- Returns:
- Stream of RoleModel. Never returnsnull.
 
- 
getRolesStreamDescription copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
- getRolesStreamin interface- RoleContainerModel
- Parameters:
- firstResult-- IntegerIndex of the first desired role. Ignored if negative or- null.
- maxResults-- IntegerMaximum number of returned roles. Ignored if negative or- null.
- Returns:
- Stream of RoleModel. Never returnsnull.
 
- 
searchForRolesStreamDescription copied from interface:RoleContainerModelSearches roles by the given name. Returns all roles that match the given filter.- Specified by:
- searchForRolesStreamin interface- RoleContainerModel
- Parameters:
- search-- StringName of the role to be used as a filter.
- first-- IntegerIndex of the first desired role. Ignored if negative or- null.
- max-- IntegerMaximum number of returned roles. Ignored if negative or- null.
- Returns:
- Stream of RoleModel. Never returnsnull.
 
- 
isBruteForceProtectedpublic boolean isBruteForceProtected()- Specified by:
- isBruteForceProtectedin interface- RealmModel
 
- 
setBruteForceProtectedpublic void setBruteForceProtected(boolean value) - Specified by:
- setBruteForceProtectedin interface- RealmModel
 
- 
isPermanentLockoutpublic boolean isPermanentLockout()- Specified by:
- isPermanentLockoutin interface- RealmModel
 
- 
setPermanentLockoutpublic void setPermanentLockout(boolean val) - Specified by:
- setPermanentLockoutin interface- RealmModel
 
- 
getMaxFailureWaitSecondspublic int getMaxFailureWaitSeconds()- Specified by:
- getMaxFailureWaitSecondsin interface- RealmModel
 
- 
setMaxFailureWaitSecondspublic void setMaxFailureWaitSeconds(int val) - Specified by:
- setMaxFailureWaitSecondsin interface- RealmModel
 
- 
getWaitIncrementSecondspublic int getWaitIncrementSeconds()- Specified by:
- getWaitIncrementSecondsin interface- RealmModel
 
- 
setWaitIncrementSecondspublic void setWaitIncrementSeconds(int val) - Specified by:
- setWaitIncrementSecondsin interface- RealmModel
 
- 
getMinimumQuickLoginWaitSecondspublic int getMinimumQuickLoginWaitSeconds()- Specified by:
- getMinimumQuickLoginWaitSecondsin interface- RealmModel
 
- 
setMinimumQuickLoginWaitSecondspublic void setMinimumQuickLoginWaitSeconds(int val) - Specified by:
- setMinimumQuickLoginWaitSecondsin interface- RealmModel
 
- 
getQuickLoginCheckMilliSecondspublic long getQuickLoginCheckMilliSeconds()- Specified by:
- getQuickLoginCheckMilliSecondsin interface- RealmModel
 
- 
setQuickLoginCheckMilliSecondspublic void setQuickLoginCheckMilliSeconds(long val) - Specified by:
- setQuickLoginCheckMilliSecondsin interface- RealmModel
 
- 
getMaxDeltaTimeSecondspublic int getMaxDeltaTimeSeconds()- Specified by:
- getMaxDeltaTimeSecondsin interface- RealmModel
 
- 
setMaxDeltaTimeSecondspublic void setMaxDeltaTimeSeconds(int val) - Specified by:
- setMaxDeltaTimeSecondsin interface- RealmModel
 
- 
getFailureFactorpublic int getFailureFactor()- Specified by:
- getFailureFactorin interface- RealmModel
 
- 
setFailureFactorpublic void setFailureFactor(int failureFactor) - Specified by:
- setFailureFactorin interface- RealmModel
 
- 
getDefaultSignatureAlgorithm- Specified by:
- getDefaultSignatureAlgorithmin interface- RealmModel
 
- 
setDefaultSignatureAlgorithm- Specified by:
- setDefaultSignatureAlgorithmin interface- RealmModel
 
- 
isOfflineSessionMaxLifespanEnabledpublic boolean isOfflineSessionMaxLifespanEnabled()- Specified by:
- isOfflineSessionMaxLifespanEnabledin interface- RealmModel
 
- 
setOfflineSessionMaxLifespanEnabledpublic void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled) - Specified by:
- setOfflineSessionMaxLifespanEnabledin interface- RealmModel
 
- 
getOfflineSessionMaxLifespanpublic int getOfflineSessionMaxLifespan()- Specified by:
- getOfflineSessionMaxLifespanin interface- RealmModel
 
- 
setOfflineSessionMaxLifespanpublic void setOfflineSessionMaxLifespan(int seconds) - Specified by:
- setOfflineSessionMaxLifespanin interface- RealmModel
 
- 
getWebAuthnPolicy- Specified by:
- getWebAuthnPolicyin interface- RealmModel
- Returns:
- WebAuthn policy for 2-factor authentication
 
- 
setWebAuthnPolicyDescription copied from interface:RealmModelSet WebAuthn policy for 2-factor authentication- Specified by:
- setWebAuthnPolicyin interface- RealmModel
 
- 
getWebAuthnPolicyPasswordless- Specified by:
- getWebAuthnPolicyPasswordlessin interface- RealmModel
- Returns:
- WebAuthn passwordless policy below. This is temporary and will be removed later.
 
- 
setWebAuthnPolicyPasswordlessDescription copied from interface:RealmModelSet WebAuthn passwordless policy below. This is temporary and will be removed later.- Specified by:
- setWebAuthnPolicyPasswordlessin interface- RealmModel
 
- 
getBrowserSecurityHeaders- Specified by:
- getBrowserSecurityHeadersin interface- RealmModel
 
- 
setBrowserSecurityHeaders- Specified by:
- setBrowserSecurityHeadersin interface- RealmModel
 
- 
createClientInitialAccessModel- Specified by:
- createClientInitialAccessModelin interface- RealmModel
 
- 
getClientInitialAccessModel- Specified by:
- getClientInitialAccessModelin interface- RealmModel
 
- 
removeClientInitialAccessModel- Specified by:
- removeClientInitialAccessModelin interface- RealmModel
 
- 
getClientInitialAccesses- Specified by:
- getClientInitialAccessesin interface- RealmModel
 
- 
decreaseRemainingCount- Specified by:
- decreaseRemainingCountin interface- RealmModel
 
- 
getOAuth2DeviceConfig- Specified by:
- getOAuth2DeviceConfigin interface- RealmModel
 
- 
toString
- 
getCibaPolicy- Specified by:
- getCibaPolicyin interface- RealmModel
 
- 
getParPolicy- Specified by:
- getParPolicyin interface- RealmModel
 
 
-