public class RealmAdapter extends AbstractMongoAdapter<MongoRealmEntity> implements RealmModel
| Modifier and Type | Field and Description |
|---|---|
protected PrivateKey |
privateKey |
protected PublicKey |
publicKey |
invocationContext| Constructor and Description |
|---|
RealmAdapter(KeycloakSession session,
MongoRealmEntity realmEntity,
MongoStoreInvocationContext invocationContext) |
getMongoStore, updateMongoEntityprotected transient volatile PublicKey publicKey
protected transient volatile PrivateKey privateKey
public RealmAdapter(KeycloakSession session, MongoRealmEntity realmEntity, MongoStoreInvocationContext invocationContext)
public String getId()
getId in interface RealmModelpublic String getName()
getName in interface RealmModelpublic void setName(String name)
setName in interface RealmModelpublic boolean isEnabled()
isEnabled in interface RealmModelpublic void setEnabled(boolean enabled)
setEnabled in interface RealmModelpublic SslRequired getSslRequired()
getSslRequired in interface RealmModelpublic void setSslRequired(SslRequired sslRequired)
setSslRequired in interface RealmModelpublic boolean isPasswordCredentialGrantAllowed()
isPasswordCredentialGrantAllowed in interface RealmModelpublic void setPasswordCredentialGrantAllowed(boolean passwordCredentialGrantAllowed)
setPasswordCredentialGrantAllowed in interface RealmModelpublic boolean isRegistrationAllowed()
isRegistrationAllowed in interface RealmModelpublic void setRegistrationAllowed(boolean registrationAllowed)
setRegistrationAllowed in interface RealmModelpublic boolean isRememberMe()
isRememberMe in interface RealmModelpublic void setRememberMe(boolean rememberMe)
setRememberMe in interface RealmModelpublic boolean isBruteForceProtected()
isBruteForceProtected in interface RealmModelpublic void setBruteForceProtected(boolean value)
setBruteForceProtected in interface RealmModelpublic int getMaxFailureWaitSeconds()
getMaxFailureWaitSeconds in interface RealmModelpublic void setMaxFailureWaitSeconds(int val)
setMaxFailureWaitSeconds in interface RealmModelpublic int getWaitIncrementSeconds()
getWaitIncrementSeconds in interface RealmModelpublic void setWaitIncrementSeconds(int val)
setWaitIncrementSeconds in interface RealmModelpublic long getQuickLoginCheckMilliSeconds()
getQuickLoginCheckMilliSeconds in interface RealmModelpublic void setQuickLoginCheckMilliSeconds(long val)
setQuickLoginCheckMilliSeconds in interface RealmModelpublic int getMinimumQuickLoginWaitSeconds()
getMinimumQuickLoginWaitSeconds in interface RealmModelpublic void setMinimumQuickLoginWaitSeconds(int val)
setMinimumQuickLoginWaitSeconds in interface RealmModelpublic int getMaxDeltaTimeSeconds()
getMaxDeltaTimeSeconds in interface RealmModelpublic void setMaxDeltaTimeSeconds(int val)
setMaxDeltaTimeSeconds in interface RealmModelpublic int getFailureFactor()
getFailureFactor in interface RealmModelpublic void setFailureFactor(int failureFactor)
setFailureFactor in interface RealmModelpublic boolean isVerifyEmail()
isVerifyEmail in interface RealmModelpublic void setVerifyEmail(boolean verifyEmail)
setVerifyEmail in interface RealmModelpublic boolean isResetPasswordAllowed()
isResetPasswordAllowed in interface RealmModelpublic void setResetPasswordAllowed(boolean resetPassword)
setResetPasswordAllowed in interface RealmModelpublic boolean isSocial()
isSocial in interface RealmModelpublic void setSocial(boolean social)
setSocial in interface RealmModelpublic boolean isUpdateProfileOnInitialSocialLogin()
isUpdateProfileOnInitialSocialLogin in interface RealmModelpublic void setUpdateProfileOnInitialSocialLogin(boolean updateProfileOnInitialSocialLogin)
setUpdateProfileOnInitialSocialLogin in interface RealmModelpublic PasswordPolicy getPasswordPolicy()
getPasswordPolicy in interface RealmModelpublic void setPasswordPolicy(PasswordPolicy policy)
setPasswordPolicy in interface RealmModelpublic int getNotBefore()
RealmModelgetNotBefore in interface RealmModelpublic void setNotBefore(int notBefore)
setNotBefore in interface RealmModelpublic int getSsoSessionIdleTimeout()
getSsoSessionIdleTimeout in interface RealmModelpublic void setSsoSessionIdleTimeout(int seconds)
setSsoSessionIdleTimeout in interface RealmModelpublic int getSsoSessionMaxLifespan()
getSsoSessionMaxLifespan in interface RealmModelpublic void setSsoSessionMaxLifespan(int seconds)
setSsoSessionMaxLifespan in interface RealmModelpublic int getAccessTokenLifespan()
getAccessTokenLifespan in interface RealmModelpublic void setAccessTokenLifespan(int tokenLifespan)
setAccessTokenLifespan in interface RealmModelpublic int getAccessCodeLifespan()
getAccessCodeLifespan in interface RealmModelpublic void setAccessCodeLifespan(int accessCodeLifespan)
setAccessCodeLifespan in interface RealmModelpublic int getAccessCodeLifespanUserAction()
getAccessCodeLifespanUserAction in interface RealmModelpublic void setAccessCodeLifespanUserAction(int accessCodeLifespanUserAction)
setAccessCodeLifespanUserAction in interface RealmModelpublic String getPublicKeyPem()
getPublicKeyPem in interface RealmModelpublic void setPublicKeyPem(String publicKeyPem)
setPublicKeyPem in interface RealmModelpublic String getPrivateKeyPem()
getPrivateKeyPem in interface RealmModelpublic void setPrivateKeyPem(String privateKeyPem)
setPrivateKeyPem in interface RealmModelpublic PublicKey getPublicKey()
getPublicKey in interface RealmModelpublic void setPublicKey(PublicKey publicKey)
setPublicKey in interface RealmModelpublic PrivateKey getPrivateKey()
getPrivateKey in interface RealmModelpublic void setPrivateKey(PrivateKey privateKey)
setPrivateKey in interface RealmModelpublic String getLoginTheme()
getLoginTheme in interface RealmModelpublic void setLoginTheme(String name)
setLoginTheme in interface RealmModelpublic String getAccountTheme()
getAccountTheme in interface RealmModelpublic void setAccountTheme(String name)
setAccountTheme in interface RealmModelpublic String getAdminTheme()
getAdminTheme in interface RealmModelpublic void setAdminTheme(String name)
setAdminTheme in interface RealmModelpublic String getEmailTheme()
getEmailTheme in interface RealmModelpublic void setEmailTheme(String name)
setEmailTheme in interface RealmModelpublic RoleAdapter getRole(String name)
getRole in interface RoleContainerModelpublic RoleModel addRole(String name)
addRole in interface RoleContainerModelpublic RoleModel addRole(String id, String name)
addRole in interface RoleContainerModelpublic boolean removeRole(RoleModel role)
removeRole in interface RoleContainerModelpublic boolean removeRoleById(String id)
removeRoleById in interface RealmModelpublic Set<RoleModel> getRoles()
getRoles in interface RoleContainerModelpublic RoleModel getRoleById(String id)
getRoleById in interface RealmModelpublic List<String> getDefaultRoles()
getDefaultRoles in interface RealmModelpublic void addDefaultRole(String name)
addDefaultRole in interface RealmModelpublic void updateDefaultRoles(String[] defaultRoles)
updateDefaultRoles in interface RealmModelpublic ClientModel findClient(String clientId)
findClient in interface RealmModelpublic ClientModel findClientById(String id)
findClientById in interface RealmModelpublic ApplicationModel getApplicationById(String id)
getApplicationById in interface RealmModelpublic ApplicationModel getApplicationByName(String name)
getApplicationByName in interface RealmModelpublic Map<String,ApplicationModel> getApplicationNameMap()
getApplicationNameMap in interface RealmModelpublic List<ApplicationModel> getApplications()
getApplications in interface RealmModelpublic ApplicationModel addApplication(String name)
addApplication in interface RealmModelpublic ApplicationModel addApplication(String id, String name)
addApplication in interface RealmModelpublic boolean removeApplication(String id)
removeApplication in interface RealmModelpublic OAuthClientModel addOAuthClient(String name)
addOAuthClient in interface RealmModelpublic OAuthClientModel addOAuthClient(String id, String name)
addOAuthClient in interface RealmModelpublic boolean removeOAuthClient(String id)
removeOAuthClient in interface RealmModelpublic OAuthClientModel getOAuthClient(String name)
getOAuthClient in interface RealmModelpublic OAuthClientModel getOAuthClientById(String id)
getOAuthClientById in interface RealmModelpublic List<OAuthClientModel> getOAuthClients()
getOAuthClients in interface RealmModelpublic void addRequiredCredential(String type)
addRequiredCredential in interface RealmModelprotected void addRequiredCredential(RequiredCredentialModel credentialModel, List<RequiredCredentialEntity> persistentCollection)
public void updateRequiredCredentials(Set<String> creds)
updateRequiredCredentials in interface RealmModelprotected void updateRequiredCredentials(Set<String> creds, List<RequiredCredentialEntity> credsEntities)
public List<RequiredCredentialModel> getRequiredCredentials()
getRequiredCredentials in interface RealmModelprotected List<RequiredCredentialModel> convertRequiredCredentialEntities(Collection<RequiredCredentialEntity> credEntities)
protected void updateRealm()
protected RequiredCredentialModel initRequiredCredentialModel(String type)
public Map<String,String> getBrowserSecurityHeaders()
getBrowserSecurityHeaders in interface RealmModelpublic void setBrowserSecurityHeaders(Map<String,String> headers)
setBrowserSecurityHeaders in interface RealmModelpublic Map<String,String> getSmtpConfig()
getSmtpConfig in interface RealmModelpublic void setSmtpConfig(Map<String,String> smtpConfig)
setSmtpConfig in interface RealmModelpublic Map<String,String> getSocialConfig()
getSocialConfig in interface RealmModelpublic void setSocialConfig(Map<String,String> socialConfig)
setSocialConfig in interface RealmModelpublic UserFederationProviderModel addUserFederationProvider(String providerName, Map<String,String> config, int priority, String displayName, int fullSyncPeriod, int changedSyncPeriod, int lastSync)
addUserFederationProvider in interface RealmModelpublic void removeUserFederationProvider(UserFederationProviderModel provider)
removeUserFederationProvider in interface RealmModelpublic void updateUserFederationProvider(UserFederationProviderModel model)
updateUserFederationProvider in interface RealmModelpublic List<UserFederationProviderModel> getUserFederationProviders()
getUserFederationProviders in interface RealmModelpublic void setUserFederationProviders(List<UserFederationProviderModel> providers)
setUserFederationProviders in interface RealmModelpublic boolean isEventsEnabled()
isEventsEnabled in interface RealmModelpublic void setEventsEnabled(boolean enabled)
setEventsEnabled in interface RealmModelpublic long getEventsExpiration()
getEventsExpiration in interface RealmModelpublic void setEventsExpiration(long expiration)
setEventsExpiration in interface RealmModelpublic Set<String> getEventsListeners()
getEventsListeners in interface RealmModelpublic void setEventsListeners(Set<String> listeners)
setEventsListeners in interface RealmModelpublic ApplicationModel getMasterAdminApp()
getMasterAdminApp in interface RealmModelpublic void setMasterAdminApp(ApplicationModel app)
setMasterAdminApp in interface RealmModelpublic MongoRealmEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<MongoRealmEntity>public boolean equals(Object o)
equals in class AbstractMongoAdapter<MongoRealmEntity>public int hashCode()
hashCode in class AbstractMongoAdapter<MongoRealmEntity>Copyright © 2014. All Rights Reserved.