Class CachedRealm
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.entities.AbstractRevisioned
-
- org.keycloak.models.cache.infinispan.entities.AbstractExtendableRevisioned
-
- org.keycloak.models.cache.infinispan.entities.CachedRealm
-
- All Implemented Interfaces:
Serializable
,CachedObject
,Revisioned
public class CachedRealm extends AbstractExtendableRevisioned
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.cache.infinispan.entities.AbstractExtendableRevisioned
cachedWith
-
-
Constructor Summary
Constructors Constructor Description CachedRealm(Long revision, RealmModel model)
-
Method Summary
-
Methods inherited from class org.keycloak.models.cache.infinispan.entities.AbstractExtendableRevisioned
getCachedWith
-
Methods inherited from class org.keycloak.models.cache.infinispan.entities.AbstractRevisioned
getCacheTimestamp, getId, getRevision, setRevision
-
-
-
-
Field Detail
-
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
-
bruteForceProtected
protected boolean bruteForceProtected
-
permanentLockout
protected boolean permanentLockout
-
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
-
authenticationFlows
protected Map<String,AuthenticationFlowModel> authenticationFlows
-
authenticationFlowList
protected List<AuthenticationFlowModel> authenticationFlowList
-
authenticatorConfigs
protected Map<String,AuthenticatorConfigModel> authenticatorConfigs
-
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
-
directGrantFlow
protected AuthenticationFlowModel directGrantFlow
-
resetCredentialsFlow
protected AuthenticationFlowModel resetCredentialsFlow
-
clientAuthenticationFlow
protected AuthenticationFlowModel clientAuthenticationFlow
-
dockerAuthenticationFlow
protected AuthenticationFlowModel dockerAuthenticationFlow
-
eventsEnabled
protected boolean eventsEnabled
-
eventsExpiration
protected long eventsExpiration
-
adminEventsEnabled
protected boolean adminEventsEnabled
-
adminEventsDetailsEnabled
protected boolean adminEventsDetailsEnabled
-
defaultRoleId
protected String defaultRoleId
-
internationalizationEnabled
protected boolean internationalizationEnabled
-
defaultLocale
protected String defaultLocale
-
identityProviderMappers
protected MultivaluedHashMap<String,IdentityProviderMapperModel> identityProviderMappers
-
identityProviderMapperSet
protected Set<IdentityProviderMapperModel> identityProviderMapperSet
-
-
Constructor Detail
-
CachedRealm
public CachedRealm(Long revision, RealmModel model)
-
-
Method Detail
-
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()
-
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()
-
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()
-
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()
-
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()
-
isAdminEventsEnabled
public boolean isAdminEventsEnabled()
-
isAdminEventsDetailsEnabled
public boolean isAdminEventsDetailsEnabled()
-
getIdentityProviders
public List<IdentityProviderModel> getIdentityProviders()
-
isInternationalizationEnabled
public boolean isInternationalizationEnabled()
-
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()
-
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()
-
isAllowUserManagedAccess
public boolean isAllowUserManagedAccess()
-
-