All Implemented Interfaces:
Serializable, CachedObject, Revisioned

public class CachedRealm extends AbstractExtendableRevisioned
Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
  • Field Details

    • name

      protected String name
    • displayName

      protected String displayName
    • displayNameHtml

      protected String displayNameHtml
    • enabled

      protected boolean enabled
    • sslRequired

      protected SslRequired sslRequired
    • registrationAllowed

      protected boolean registrationAllowed
    • registrationEmailAsUsername

      protected boolean registrationEmailAsUsername
    • rememberMe

      protected boolean rememberMe
    • verifyEmail

      protected boolean verifyEmail
    • loginWithEmailAllowed

      protected boolean loginWithEmailAllowed
    • duplicateEmailsAllowed

      protected boolean duplicateEmailsAllowed
    • resetPasswordAllowed

      protected boolean resetPasswordAllowed
    • identityFederationEnabled

      protected boolean identityFederationEnabled
    • editUsernameAllowed

      protected boolean editUsernameAllowed
    • organizationsEnabled

      protected boolean organizationsEnabled
    • bruteForceProtected

      protected boolean bruteForceProtected
    • permanentLockout

      protected boolean permanentLockout
    • maxTemporaryLockouts

      protected int maxTemporaryLockouts
    • maxFailureWaitSeconds

      protected int maxFailureWaitSeconds
    • minimumQuickLoginWaitSeconds

      protected int minimumQuickLoginWaitSeconds
    • waitIncrementSeconds

      protected int waitIncrementSeconds
    • quickLoginCheckMilliSeconds

      protected long quickLoginCheckMilliSeconds
    • maxDeltaTimeSeconds

      protected int maxDeltaTimeSeconds
    • failureFactor

      protected int failureFactor
    • defaultSignatureAlgorithm

      protected String defaultSignatureAlgorithm
    • revokeRefreshToken

      protected boolean revokeRefreshToken
    • refreshTokenMaxReuse

      protected int refreshTokenMaxReuse
    • ssoSessionIdleTimeout

      protected int ssoSessionIdleTimeout
    • ssoSessionMaxLifespan

      protected int ssoSessionMaxLifespan
    • ssoSessionIdleTimeoutRememberMe

      protected int ssoSessionIdleTimeoutRememberMe
    • ssoSessionMaxLifespanRememberMe

      protected int ssoSessionMaxLifespanRememberMe
    • offlineSessionIdleTimeout

      protected int offlineSessionIdleTimeout
    • offlineSessionMaxLifespanEnabled

      protected boolean offlineSessionMaxLifespanEnabled
    • offlineSessionMaxLifespan

      protected int offlineSessionMaxLifespan
    • clientSessionIdleTimeout

      protected int clientSessionIdleTimeout
    • clientSessionMaxLifespan

      protected int clientSessionMaxLifespan
    • clientOfflineSessionIdleTimeout

      protected int clientOfflineSessionIdleTimeout
    • clientOfflineSessionMaxLifespan

      protected int clientOfflineSessionMaxLifespan
    • accessTokenLifespan

      protected int accessTokenLifespan
    • accessTokenLifespanForImplicitFlow

      protected int accessTokenLifespanForImplicitFlow
    • accessCodeLifespan

      protected int accessCodeLifespan
    • accessCodeLifespanUserAction

      protected int accessCodeLifespanUserAction
    • accessCodeLifespanLogin

      protected int accessCodeLifespanLogin
    • deviceConfig

      protected LazyLoader<RealmModel,OAuth2DeviceConfig> deviceConfig
    • cibaConfig

      protected LazyLoader<RealmModel,CibaConfig> cibaConfig
    • parConfig

      protected LazyLoader<RealmModel,ParConfig> parConfig
    • actionTokenGeneratedByAdminLifespan

      protected int actionTokenGeneratedByAdminLifespan
    • actionTokenGeneratedByUserLifespan

      protected int actionTokenGeneratedByUserLifespan
    • notBefore

      protected int notBefore
    • passwordPolicy

      protected PasswordPolicy passwordPolicy
    • otpPolicy

      protected OTPPolicy otpPolicy
    • webAuthnPolicy

      protected WebAuthnPolicy webAuthnPolicy
    • webAuthnPasswordlessPolicy

      protected WebAuthnPolicy webAuthnPasswordlessPolicy
    • loginTheme

      protected String loginTheme
    • accountTheme

      protected String accountTheme
    • adminTheme

      protected String adminTheme
    • emailTheme

      protected String emailTheme
    • masterAdminClient

      protected String masterAdminClient
    • requiredCredentials

      protected List<RequiredCredentialModel> requiredCredentials
    • componentsByParent

      protected MultivaluedHashMap<String,ComponentModel> componentsByParent
    • componentsByParentAndType

      protected MultivaluedHashMap<String,ComponentModel> componentsByParentAndType
    • components

      protected Map<String,ComponentModel> components
    • identityProviders

      protected List<IdentityProviderModel> identityProviders
    • browserSecurityHeaders

      protected Map<String,String> browserSecurityHeaders
    • smtpConfig

      protected Map<String,String> smtpConfig
    • authenticationFlows

      protected Map<String,AuthenticationFlowModel> authenticationFlows
    • authenticationFlowList

      protected List<AuthenticationFlowModel> authenticationFlowList
    • authenticatorConfigs

      protected Map<String,AuthenticatorConfigModel> authenticatorConfigs
    • requiredActionProviderConfigs

      protected Map<String,RequiredActionConfigModel> requiredActionProviderConfigs
    • requiredActionProviderConfigsByAlias

      protected Map<String,RequiredActionConfigModel> requiredActionProviderConfigsByAlias
    • requiredActionProviders

      protected Map<String,RequiredActionProviderModel> requiredActionProviders
    • requiredActionProviderList

      protected List<RequiredActionProviderModel> requiredActionProviderList
    • requiredActionProvidersByAlias

      protected Map<String,RequiredActionProviderModel> requiredActionProvidersByAlias
    • authenticationExecutions

      protected MultivaluedHashMap<String,AuthenticationExecutionModel> authenticationExecutions
    • executionsById

      protected Map<String,AuthenticationExecutionModel> executionsById
    • executionsByFlowId

      protected Map<String,AuthenticationExecutionModel> executionsByFlowId
    • browserFlow

      protected AuthenticationFlowModel browserFlow
    • registrationFlow

      protected AuthenticationFlowModel registrationFlow
    • orgRegistrationFlow

      protected AuthenticationFlowModel orgRegistrationFlow
    • directGrantFlow

      protected AuthenticationFlowModel directGrantFlow
    • resetCredentialsFlow

      protected AuthenticationFlowModel resetCredentialsFlow
    • clientAuthenticationFlow

      protected AuthenticationFlowModel clientAuthenticationFlow
    • dockerAuthenticationFlow

      protected AuthenticationFlowModel dockerAuthenticationFlow
    • firstBrokerLoginFlow

      protected AuthenticationFlowModel firstBrokerLoginFlow
    • eventsEnabled

      protected boolean eventsEnabled
    • eventsExpiration

      protected long eventsExpiration
    • eventsListeners

      protected Set<String> eventsListeners
    • enabledEventTypes

      protected Set<String> enabledEventTypes
    • adminEventsEnabled

      protected boolean adminEventsEnabled
    • adminEventsDetailsEnabled

      protected boolean adminEventsDetailsEnabled
    • defaultRoleId

      protected String defaultRoleId
    • defaultGroups

      protected List<String> defaultGroups
    • defaultDefaultClientScopes

      protected List<String> defaultDefaultClientScopes
    • optionalDefaultClientScopes

      protected List<String> optionalDefaultClientScopes
    • internationalizationEnabled

      protected boolean internationalizationEnabled
    • supportedLocales

      protected Set<String> supportedLocales
    • defaultLocale

      protected String defaultLocale
    • identityProviderMappers

      protected MultivaluedHashMap<String,IdentityProviderMapperModel> identityProviderMappers
    • identityProviderMapperSet

      protected Set<IdentityProviderMapperModel> identityProviderMapperSet
    • attributes

      protected Map<String,String> attributes
    • realmLocalizationTexts

      protected Map<String,Map<String,String>> realmLocalizationTexts
  • Constructor Details

  • Method Details

    • getIdentityProviderMapperSet

      public Set<IdentityProviderMapperModel> getIdentityProviderMapperSet()
    • cacheClientScopes

      protected void cacheClientScopes(RealmModel model)
    • getMasterAdminClient

      public String getMasterAdminClient()
    • getDefaultRoleId

      public String getDefaultRoleId()
    • getName

      public String getName()
    • getDisplayName

      public String getDisplayName()
    • getDisplayNameHtml

      public String getDisplayNameHtml()
    • isEnabled

      public boolean isEnabled()
    • getSslRequired

      public SslRequired getSslRequired()
    • isRegistrationAllowed

      public boolean isRegistrationAllowed()
    • isRegistrationEmailAsUsername

      public boolean isRegistrationEmailAsUsername()
    • isRememberMe

      public boolean isRememberMe()
    • isBruteForceProtected

      public boolean isBruteForceProtected()
    • isPermanentLockout

      public boolean isPermanentLockout()
    • getMaxTemporaryLockouts

      public int getMaxTemporaryLockouts()
    • getMaxFailureWaitSeconds

      public int getMaxFailureWaitSeconds()
    • getWaitIncrementSeconds

      public int getWaitIncrementSeconds()
    • getMinimumQuickLoginWaitSeconds

      public int getMinimumQuickLoginWaitSeconds()
    • getQuickLoginCheckMilliSeconds

      public long getQuickLoginCheckMilliSeconds()
    • getMaxDeltaTimeSeconds

      public int getMaxDeltaTimeSeconds()
    • getFailureFactor

      public int getFailureFactor()
    • isVerifyEmail

      public boolean isVerifyEmail()
    • isLoginWithEmailAllowed

      public boolean isLoginWithEmailAllowed()
    • isDuplicateEmailsAllowed

      public boolean isDuplicateEmailsAllowed()
    • isResetPasswordAllowed

      public boolean isResetPasswordAllowed()
    • isEditUsernameAllowed

      public boolean isEditUsernameAllowed()
    • isOrganizationsEnabled

      public boolean isOrganizationsEnabled()
    • getDefaultSignatureAlgorithm

      public String getDefaultSignatureAlgorithm()
    • isRevokeRefreshToken

      public boolean isRevokeRefreshToken()
    • getRefreshTokenMaxReuse

      public int getRefreshTokenMaxReuse()
    • getSsoSessionIdleTimeout

      public int getSsoSessionIdleTimeout()
    • getSsoSessionMaxLifespan

      public int getSsoSessionMaxLifespan()
    • getSsoSessionIdleTimeoutRememberMe

      public int getSsoSessionIdleTimeoutRememberMe()
    • getSsoSessionMaxLifespanRememberMe

      public int getSsoSessionMaxLifespanRememberMe()
    • getOfflineSessionIdleTimeout

      public int getOfflineSessionIdleTimeout()
    • isOfflineSessionMaxLifespanEnabled

      public boolean isOfflineSessionMaxLifespanEnabled()
    • getOfflineSessionMaxLifespan

      public int getOfflineSessionMaxLifespan()
    • getClientSessionIdleTimeout

      public int getClientSessionIdleTimeout()
    • getClientSessionMaxLifespan

      public int getClientSessionMaxLifespan()
    • getClientOfflineSessionIdleTimeout

      public int getClientOfflineSessionIdleTimeout()
    • getClientOfflineSessionMaxLifespan

      public int getClientOfflineSessionMaxLifespan()
    • getAccessTokenLifespan

      public int getAccessTokenLifespan()
    • getAccessTokenLifespanForImplicitFlow

      public int getAccessTokenLifespanForImplicitFlow()
    • getAccessCodeLifespan

      public int getAccessCodeLifespan()
    • getAccessCodeLifespanUserAction

      public int getAccessCodeLifespanUserAction()
    • getUserActionTokenLifespans

      public Map<String,Integer> getUserActionTokenLifespans()
    • getAccessCodeLifespanLogin

      public int getAccessCodeLifespanLogin()
    • getOAuth2DeviceConfig

      public OAuth2DeviceConfig getOAuth2DeviceConfig(Supplier<RealmModel> modelSupplier)
    • getCibaConfig

      public CibaConfig getCibaConfig(Supplier<RealmModel> modelSupplier)
    • getParConfig

      public ParConfig getParConfig(Supplier<RealmModel> modelSupplier)
    • getActionTokenGeneratedByAdminLifespan

      public int getActionTokenGeneratedByAdminLifespan()
    • getActionTokenGeneratedByUserLifespan

      public int getActionTokenGeneratedByUserLifespan()
    • getActionTokenGeneratedByUserLifespan

      public int getActionTokenGeneratedByUserLifespan(String actionTokenId)
      This method is supposed to return user lifespan based on the action token ID provided. If nothing is provided, it will return the default lifespan.
      Parameters:
      actionTokenId -
      Returns:
      lifespan
    • getRequiredCredentials

      public List<RequiredCredentialModel> getRequiredCredentials()
    • getPasswordPolicy

      public PasswordPolicy getPasswordPolicy()
    • isIdentityFederationEnabled

      public boolean isIdentityFederationEnabled()
    • getSmtpConfig

      public Map<String,String> getSmtpConfig()
    • getBrowserSecurityHeaders

      public Map<String,String> getBrowserSecurityHeaders()
    • getLoginTheme

      public String getLoginTheme()
    • getAccountTheme

      public String getAccountTheme()
    • getAdminTheme

      public String getAdminTheme()
    • getEmailTheme

      public String getEmailTheme()
    • getNotBefore

      public int getNotBefore()
    • isEventsEnabled

      public boolean isEventsEnabled()
    • getEventsExpiration

      public long getEventsExpiration()
    • getEventsListeners

      public Set<String> getEventsListeners()
    • getEnabledEventTypes

      public Set<String> getEnabledEventTypes()
    • isAdminEventsEnabled

      public boolean isAdminEventsEnabled()
    • isAdminEventsDetailsEnabled

      public boolean isAdminEventsDetailsEnabled()
    • getIdentityProviders

      public List<IdentityProviderModel> getIdentityProviders()
    • isInternationalizationEnabled

      public boolean isInternationalizationEnabled()
    • getSupportedLocales

      public Set<String> getSupportedLocales()
    • getDefaultLocale

      public String getDefaultLocale()
    • getIdentityProviderMappers

      public MultivaluedHashMap<String,IdentityProviderMapperModel> getIdentityProviderMappers()
    • getAuthenticationFlows

      public Map<String,AuthenticationFlowModel> getAuthenticationFlows()
    • getAuthenticatorConfigs

      public Map<String,AuthenticatorConfigModel> getAuthenticatorConfigs()
    • getAuthenticationExecutions

      public MultivaluedHashMap<String,AuthenticationExecutionModel> getAuthenticationExecutions()
    • getAuthenticationExecutionByFlowId

      public AuthenticationExecutionModel getAuthenticationExecutionByFlowId(String flowId)
    • getExecutionsById

      public Map<String,AuthenticationExecutionModel> getExecutionsById()
    • getRequiredActionProviders

      public Map<String,RequiredActionProviderModel> getRequiredActionProviders()
    • getRequiredActionProvidersByAlias

      public Map<String,RequiredActionProviderModel> getRequiredActionProvidersByAlias()
    • getOtpPolicy

      public OTPPolicy getOtpPolicy()
    • getWebAuthnPolicy

      public WebAuthnPolicy getWebAuthnPolicy()
    • getWebAuthnPasswordlessPolicy

      public WebAuthnPolicy getWebAuthnPasswordlessPolicy()
    • getBrowserFlow

      public AuthenticationFlowModel getBrowserFlow()
    • getRegistrationFlow

      public AuthenticationFlowModel getRegistrationFlow()
    • getDirectGrantFlow

      public AuthenticationFlowModel getDirectGrantFlow()
    • getResetCredentialsFlow

      public AuthenticationFlowModel getResetCredentialsFlow()
    • getClientAuthenticationFlow

      public AuthenticationFlowModel getClientAuthenticationFlow()
    • getDockerAuthenticationFlow

      public AuthenticationFlowModel getDockerAuthenticationFlow()
    • getFirstBrokerLoginFlow

      public AuthenticationFlowModel getFirstBrokerLoginFlow()
    • getDefaultGroups

      public List<String> getDefaultGroups()
    • getDefaultDefaultClientScopes

      public List<String> getDefaultDefaultClientScopes()
    • getOptionalDefaultClientScopes

      public List<String> getOptionalDefaultClientScopes()
    • getAuthenticationFlowList

      public List<AuthenticationFlowModel> getAuthenticationFlowList()
    • getRequiredActionProviderList

      public List<RequiredActionProviderModel> getRequiredActionProviderList()
    • getComponentsByParent

      public MultivaluedHashMap<String,ComponentModel> getComponentsByParent()
    • getComponentsByParentAndType

      public MultivaluedHashMap<String,ComponentModel> getComponentsByParentAndType()
    • getComponents

      public Map<String,ComponentModel> getComponents()
    • getAttribute

      public String getAttribute(String name)
    • getAttribute

      public Integer getAttribute(String name, Integer defaultValue)
    • getAttribute

      public Long getAttribute(String name, Long defaultValue)
    • getAttribute

      public Boolean getAttribute(String name, Boolean defaultValue)
    • getAttributes

      public Map<String,String> getAttributes()
    • isAllowUserManagedAccess

      public boolean isAllowUserManagedAccess()
    • getRealmLocalizationTexts

      public Map<String,Map<String,String>> getRealmLocalizationTexts()
    • getRequiredActionProviderConfigsByAlias

      public Map<String,RequiredActionConfigModel> getRequiredActionProviderConfigsByAlias()
    • getRequiredActionProviderConfigs

      public Map<String,RequiredActionConfigModel> getRequiredActionProviderConfigs()