org.keycloak.models.mongo.keycloak.adapters

## Class RealmAdapter

- java.lang.Object
- - org.keycloak.models.mongo.keycloak.adapters.AbstractMongoAdapter<MongoRealmEntity>
  - - org.keycloak.models.mongo.keycloak.adapters.RealmAdapter

- All Implemented Interfaces:
    RealmModel, RoleContainerModel

      public class RealmAdapter
      extends AbstractMongoAdapter<MongoRealmEntity>
      implements RealmModel

  Author:
    Marek Posolda

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected X509Certificate` | `certificate`
    `protected PrivateKey` | `privateKey`
    `protected PublicKey` | `publicKey`

    - ### Fields inherited from class org.keycloak.models.mongo.keycloak.adapters.AbstractMongoAdapter

      `invocationContext`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RealmAdapter(KeycloakSession session, MongoRealmEntity realmEntity, MongoStoreInvocationContext invocationContext)`

  - ### Method Summary

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

    - ### Methods inherited from class org.keycloak.models.mongo.keycloak.adapters.AbstractMongoAdapter

      `getMongoStore, updateMongoEntity`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### publicKey

          protected transient volatile PublicKey publicKey

    - #### privateKey

          protected transient volatile PrivateKey privateKey

    - #### certificate

          protected transient volatile X509Certificate certificate

  - ### Constructor Detail

    - #### RealmAdapter

          public RealmAdapter(KeycloakSession session,
                      MongoRealmEntity realmEntity,
                      MongoStoreInvocationContext invocationContext)

  - ### Method Detail

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `RealmModel`

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `RealmModel`

    - #### setName

          public void setName(String name)

      Specified by:
        `setName` in interface `RealmModel`

    - #### isEnabled

          public boolean isEnabled()

      Specified by:
        `isEnabled` in interface `RealmModel`

    - #### setEnabled

          public void setEnabled(boolean enabled)

      Specified by:
        `setEnabled` in interface `RealmModel`

    - #### getSslRequired

          public SslRequired getSslRequired()

      Specified by:
        `getSslRequired` in interface `RealmModel`

    - #### setSslRequired

          public void setSslRequired(SslRequired sslRequired)

      Specified by:
        `setSslRequired` in interface `RealmModel`

    - #### isPasswordCredentialGrantAllowed

          public boolean isPasswordCredentialGrantAllowed()

      Specified by:
        `isPasswordCredentialGrantAllowed` in interface `RealmModel`

    - #### setPasswordCredentialGrantAllowed

          public void setPasswordCredentialGrantAllowed(boolean passwordCredentialGrantAllowed)

      Specified by:
        `setPasswordCredentialGrantAllowed` in interface `RealmModel`

    - #### isRegistrationAllowed

          public boolean isRegistrationAllowed()

      Specified by:
        `isRegistrationAllowed` in interface `RealmModel`

    - #### setRegistrationAllowed

          public void setRegistrationAllowed(boolean registrationAllowed)

      Specified by:
        `setRegistrationAllowed` in interface `RealmModel`

    - #### isRememberMe

          public boolean isRememberMe()

      Specified by:
        `isRememberMe` in interface `RealmModel`

    - #### setRememberMe

          public void setRememberMe(boolean rememberMe)

      Specified by:
        `setRememberMe` in interface `RealmModel`

    - #### isBruteForceProtected

          public boolean isBruteForceProtected()

      Specified by:
        `isBruteForceProtected` in interface `RealmModel`

    - #### setBruteForceProtected

          public void setBruteForceProtected(boolean value)

      Specified by:
        `setBruteForceProtected` in interface `RealmModel`

    - #### getMaxFailureWaitSeconds

          public int getMaxFailureWaitSeconds()

      Specified by:
        `getMaxFailureWaitSeconds` in interface `RealmModel`

    - #### setMaxFailureWaitSeconds

          public void setMaxFailureWaitSeconds(int val)

      Specified by:
        `setMaxFailureWaitSeconds` in interface `RealmModel`

    - #### getWaitIncrementSeconds

          public int getWaitIncrementSeconds()

      Specified by:
        `getWaitIncrementSeconds` in interface `RealmModel`

    - #### setWaitIncrementSeconds

          public void setWaitIncrementSeconds(int val)

      Specified by:
        `setWaitIncrementSeconds` in interface `RealmModel`

    - #### getQuickLoginCheckMilliSeconds

          public long getQuickLoginCheckMilliSeconds()

      Specified by:
        `getQuickLoginCheckMilliSeconds` in interface `RealmModel`

    - #### setQuickLoginCheckMilliSeconds

          public void setQuickLoginCheckMilliSeconds(long val)

      Specified by:
        `setQuickLoginCheckMilliSeconds` in interface `RealmModel`

    - #### getMinimumQuickLoginWaitSeconds

          public int getMinimumQuickLoginWaitSeconds()

      Specified by:
        `getMinimumQuickLoginWaitSeconds` in interface `RealmModel`

    - #### setMinimumQuickLoginWaitSeconds

          public void setMinimumQuickLoginWaitSeconds(int val)

      Specified by:
        `setMinimumQuickLoginWaitSeconds` in interface `RealmModel`

    - #### getMaxDeltaTimeSeconds

          public int getMaxDeltaTimeSeconds()

      Specified by:
        `getMaxDeltaTimeSeconds` in interface `RealmModel`

    - #### setMaxDeltaTimeSeconds

          public void setMaxDeltaTimeSeconds(int val)

      Specified by:
        `setMaxDeltaTimeSeconds` in interface `RealmModel`

    - #### getFailureFactor

          public int getFailureFactor()

      Specified by:
        `getFailureFactor` in interface `RealmModel`

    - #### setFailureFactor

          public void setFailureFactor(int failureFactor)

      Specified by:
        `setFailureFactor` in interface `RealmModel`

    - #### isVerifyEmail

          public boolean isVerifyEmail()

      Specified by:
        `isVerifyEmail` in interface `RealmModel`

    - #### setVerifyEmail

          public void setVerifyEmail(boolean verifyEmail)

      Specified by:
        `setVerifyEmail` in interface `RealmModel`

    - #### isResetPasswordAllowed

          public boolean isResetPasswordAllowed()

      Specified by:
        `isResetPasswordAllowed` in interface `RealmModel`

    - #### setResetPasswordAllowed

          public void setResetPasswordAllowed(boolean resetPassword)

      Specified by:
        `setResetPasswordAllowed` in interface `RealmModel`

    - #### isSocial

          public boolean isSocial()

      Specified by:
        `isSocial` in interface `RealmModel`

    - #### setSocial

          public void setSocial(boolean social)

      Specified by:
        `setSocial` in interface `RealmModel`

    - #### isUpdateProfileOnInitialSocialLogin

          public boolean isUpdateProfileOnInitialSocialLogin()

      Specified by:
        `isUpdateProfileOnInitialSocialLogin` in interface `RealmModel`

    - #### setUpdateProfileOnInitialSocialLogin

          public void setUpdateProfileOnInitialSocialLogin(boolean updateProfileOnInitialSocialLogin)

      Specified by:
        `setUpdateProfileOnInitialSocialLogin` in interface `RealmModel`

    - #### getPasswordPolicy

          public PasswordPolicy getPasswordPolicy()

      Specified by:
        `getPasswordPolicy` in interface `RealmModel`

    - #### setPasswordPolicy

          public void setPasswordPolicy(PasswordPolicy policy)

      Specified by:
        `setPasswordPolicy` in interface `RealmModel`

    - #### getNotBefore

          public int getNotBefore()

      Description copied from interface: `RealmModel`
      Time in seconds since epoc
      Specified by:
        `getNotBefore` in interface `RealmModel`
      Returns:

    - #### setNotBefore

          public void setNotBefore(int notBefore)

      Specified by:
        `setNotBefore` in interface `RealmModel`

    - #### getSsoSessionIdleTimeout

          public int getSsoSessionIdleTimeout()

      Specified by:
        `getSsoSessionIdleTimeout` in interface `RealmModel`

    - #### setSsoSessionIdleTimeout

          public void setSsoSessionIdleTimeout(int seconds)

      Specified by:
        `setSsoSessionIdleTimeout` in interface `RealmModel`

    - #### getSsoSessionMaxLifespan

          public int getSsoSessionMaxLifespan()

      Specified by:
        `getSsoSessionMaxLifespan` in interface `RealmModel`

    - #### setSsoSessionMaxLifespan

          public void setSsoSessionMaxLifespan(int seconds)

      Specified by:
        `setSsoSessionMaxLifespan` in interface `RealmModel`

    - #### getAccessTokenLifespan

          public int getAccessTokenLifespan()

      Specified by:
        `getAccessTokenLifespan` in interface `RealmModel`

    - #### setAccessTokenLifespan

          public void setAccessTokenLifespan(int tokenLifespan)

      Specified by:
        `setAccessTokenLifespan` in interface `RealmModel`

    - #### getAccessCodeLifespan

          public int getAccessCodeLifespan()

      Specified by:
        `getAccessCodeLifespan` in interface `RealmModel`

    - #### setAccessCodeLifespan

          public void setAccessCodeLifespan(int accessCodeLifespan)

      Specified by:
        `setAccessCodeLifespan` in interface `RealmModel`

    - #### getAccessCodeLifespanUserAction

          public int getAccessCodeLifespanUserAction()

      Specified by:
        `getAccessCodeLifespanUserAction` in interface `RealmModel`

    - #### setAccessCodeLifespanUserAction

          public void setAccessCodeLifespanUserAction(int accessCodeLifespanUserAction)

      Specified by:
        `setAccessCodeLifespanUserAction` in interface `RealmModel`

    - #### getPublicKeyPem

          public String getPublicKeyPem()

      Specified by:
        `getPublicKeyPem` in interface `RealmModel`

    - #### setPublicKeyPem

          public void setPublicKeyPem(String publicKeyPem)

      Specified by:
        `setPublicKeyPem` in interface `RealmModel`

    - #### getCertificate

          public X509Certificate getCertificate()

      Specified by:
        `getCertificate` in interface `RealmModel`

    - #### setCertificate

          public void setCertificate(X509Certificate certificate)

      Specified by:
        `setCertificate` in interface `RealmModel`

    - #### getCertificatePem

          public String getCertificatePem()

      Specified by:
        `getCertificatePem` in interface `RealmModel`

    - #### setCertificatePem

          public void setCertificatePem(String certificate)

      Specified by:
        `setCertificatePem` in interface `RealmModel`

    - #### getPrivateKeyPem

          public String getPrivateKeyPem()

      Specified by:
        `getPrivateKeyPem` in interface `RealmModel`

    - #### setPrivateKeyPem

          public void setPrivateKeyPem(String privateKeyPem)

      Specified by:
        `setPrivateKeyPem` in interface `RealmModel`

    - #### getPublicKey

          public PublicKey getPublicKey()

      Specified by:
        `getPublicKey` in interface `RealmModel`

    - #### setPublicKey

          public void setPublicKey(PublicKey publicKey)

      Specified by:
        `setPublicKey` in interface `RealmModel`

    - #### getPrivateKey

          public PrivateKey getPrivateKey()

      Specified by:
        `getPrivateKey` in interface `RealmModel`

    - #### setPrivateKey

          public void setPrivateKey(PrivateKey privateKey)

      Specified by:
        `setPrivateKey` in interface `RealmModel`

    - #### getCodeSecret

          public String getCodeSecret()

      Specified by:
        `getCodeSecret` in interface `RealmModel`

    - #### setCodeSecret

          public void setCodeSecret(String codeSecret)

      Specified by:
        `setCodeSecret` in interface `RealmModel`

    - #### getLoginTheme

          public String getLoginTheme()

      Specified by:
        `getLoginTheme` in interface `RealmModel`

    - #### setLoginTheme

          public void setLoginTheme(String name)

      Specified by:
        `setLoginTheme` in interface `RealmModel`

    - #### getAccountTheme

          public String getAccountTheme()

      Specified by:
        `getAccountTheme` in interface `RealmModel`

    - #### setAccountTheme

          public void setAccountTheme(String name)

      Specified by:
        `setAccountTheme` in interface `RealmModel`

    - #### getAdminTheme

          public String getAdminTheme()

      Specified by:
        `getAdminTheme` in interface `RealmModel`

    - #### setAdminTheme

          public void setAdminTheme(String name)

      Specified by:
        `setAdminTheme` in interface `RealmModel`

    - #### getEmailTheme

          public String getEmailTheme()

      Specified by:
        `getEmailTheme` in interface `RealmModel`

    - #### setEmailTheme

          public void setEmailTheme(String name)

      Specified by:
        `setEmailTheme` in interface `RealmModel`

    - #### getRole

          public RoleAdapter getRole(String name)

      Specified by:
        `getRole` in interface `RoleContainerModel`

    - #### addRole

          public RoleModel addRole(String name)

      Specified by:
        `addRole` in interface `RoleContainerModel`

    - #### addRole

          public RoleModel addRole(String id,
                          String name)

      Specified by:
        `addRole` in interface `RoleContainerModel`

    - #### removeRole

          public boolean removeRole(RoleModel role)

      Specified by:
        `removeRole` in interface `RoleContainerModel`

    - #### removeRoleById

          public boolean removeRoleById(String id)

      Specified by:
        `removeRoleById` in interface `RealmModel`

    - #### getRoles

          public Set<RoleModel> getRoles()

      Specified by:
        `getRoles` in interface `RoleContainerModel`

    - #### getRoleById

          public RoleModel getRoleById(String id)

      Specified by:
        `getRoleById` in interface `RealmModel`

    - #### getDefaultRoles

          public List<String> getDefaultRoles()

      Specified by:
        `getDefaultRoles` in interface `RealmModel`

    - #### addDefaultRole

          public void addDefaultRole(String name)

      Specified by:
        `addDefaultRole` in interface `RealmModel`

    - #### updateDefaultRoles

          public void updateDefaultRoles(String[] defaultRoles)

      Specified by:
        `updateDefaultRoles` in interface `RealmModel`

    - #### findClient

          public ClientModel findClient(String clientId)

      Specified by:
        `findClient` in interface `RealmModel`

    - #### findClientById

          public ClientModel findClientById(String id)

      Specified by:
        `findClientById` in interface `RealmModel`

    - #### getApplicationById

          public ApplicationModel getApplicationById(String id)

      Specified by:
        `getApplicationById` in interface `RealmModel`

    - #### getApplicationByName

          public ApplicationModel getApplicationByName(String name)

      Specified by:
        `getApplicationByName` in interface `RealmModel`

    - #### getApplicationNameMap

          public Map<String,ApplicationModel> getApplicationNameMap()

      Specified by:
        `getApplicationNameMap` in interface `RealmModel`

    - #### getApplications

          public List<ApplicationModel> getApplications()

      Specified by:
        `getApplications` in interface `RealmModel`

    - #### addApplication

          public ApplicationModel addApplication(String name)

      Specified by:
        `addApplication` in interface `RealmModel`

    - #### addApplication

          public ApplicationModel addApplication(String id,
                                        String name)

      Specified by:
        `addApplication` in interface `RealmModel`

    - #### removeApplication

          public boolean removeApplication(String id)

      Specified by:
        `removeApplication` in interface `RealmModel`

    - #### addOAuthClient

          public OAuthClientModel addOAuthClient(String name)

      Specified by:
        `addOAuthClient` in interface `RealmModel`

    - #### addOAuthClient

          public OAuthClientModel addOAuthClient(String id,
                                        String name)

      Specified by:
        `addOAuthClient` in interface `RealmModel`

    - #### removeOAuthClient

          public boolean removeOAuthClient(String id)

      Specified by:
        `removeOAuthClient` in interface `RealmModel`

    - #### getOAuthClient

          public OAuthClientModel getOAuthClient(String name)

      Specified by:
        `getOAuthClient` in interface `RealmModel`

    - #### getOAuthClientById

          public OAuthClientModel getOAuthClientById(String id)

      Specified by:
        `getOAuthClientById` in interface `RealmModel`

    - #### getOAuthClients

          public List<OAuthClientModel> getOAuthClients()

      Specified by:
        `getOAuthClients` in interface `RealmModel`

    - #### addRequiredCredential

          public void addRequiredCredential(String type)

      Specified by:
        `addRequiredCredential` in interface `RealmModel`

    - #### addRequiredCredential

          protected void addRequiredCredential(RequiredCredentialModel credentialModel,
                                   List<RequiredCredentialEntity> persistentCollection)

    - #### updateRequiredCredentials

          public void updateRequiredCredentials(Set<String> creds)

      Specified by:
        `updateRequiredCredentials` in interface `RealmModel`

    - #### updateRequiredCredentials

          protected void updateRequiredCredentials(Set<String> creds,
                                       List<RequiredCredentialEntity> credsEntities)

    - #### getRequiredCredentials

          public List<RequiredCredentialModel> getRequiredCredentials()

      Specified by:
        `getRequiredCredentials` in interface `RealmModel`

    - #### convertRequiredCredentialEntities

          protected List<RequiredCredentialModel> convertRequiredCredentialEntities(Collection<RequiredCredentialEntity> credEntities)

    - #### updateRealm

          protected void updateRealm()

    - #### initRequiredCredentialModel

          protected RequiredCredentialModel initRequiredCredentialModel(String type)

    - #### getBrowserSecurityHeaders

          public Map<String,String> getBrowserSecurityHeaders()

      Specified by:
        `getBrowserSecurityHeaders` in interface `RealmModel`

    - #### setBrowserSecurityHeaders

          public void setBrowserSecurityHeaders(Map<String,String> headers)

      Specified by:
        `setBrowserSecurityHeaders` in interface `RealmModel`

    - #### getSmtpConfig

          public Map<String,String> getSmtpConfig()

      Specified by:
        `getSmtpConfig` in interface `RealmModel`

    - #### setSmtpConfig

          public void setSmtpConfig(Map<String,String> smtpConfig)

      Specified by:
        `setSmtpConfig` in interface `RealmModel`

    - #### getSocialConfig

          public Map<String,String> getSocialConfig()

      Specified by:
        `getSocialConfig` in interface `RealmModel`

    - #### setSocialConfig

          public void setSocialConfig(Map<String,String> socialConfig)

      Specified by:
        `setSocialConfig` in interface `RealmModel`

    - #### addUserFederationProvider

          public UserFederationProviderModel addUserFederationProvider(String providerName,
                                                              Map<String,String> config,
                                                              int priority,
                                                              String displayName,
                                                              int fullSyncPeriod,
                                                              int changedSyncPeriod,
                                                              int lastSync)

      Specified by:
        `addUserFederationProvider` in interface `RealmModel`

    - #### removeUserFederationProvider

          public void removeUserFederationProvider(UserFederationProviderModel provider)

      Specified by:
        `removeUserFederationProvider` in interface `RealmModel`

    - #### updateUserFederationProvider

          public void updateUserFederationProvider(UserFederationProviderModel model)

      Specified by:
        `updateUserFederationProvider` in interface `RealmModel`

    - #### getUserFederationProviders

          public List<UserFederationProviderModel> getUserFederationProviders()

      Specified by:
        `getUserFederationProviders` in interface `RealmModel`

    - #### setUserFederationProviders

          public void setUserFederationProviders(List<UserFederationProviderModel> providers)

      Specified by:
        `setUserFederationProviders` in interface `RealmModel`

    - #### isEventsEnabled

          public boolean isEventsEnabled()

      Specified by:
        `isEventsEnabled` in interface `RealmModel`

    - #### setEventsEnabled

          public void setEventsEnabled(boolean enabled)

      Specified by:
        `setEventsEnabled` in interface `RealmModel`

    - #### getEventsExpiration

          public long getEventsExpiration()

      Specified by:
        `getEventsExpiration` in interface `RealmModel`

    - #### setEventsExpiration

          public void setEventsExpiration(long expiration)

      Specified by:
        `setEventsExpiration` in interface `RealmModel`

    - #### getEventsListeners

          public Set<String> getEventsListeners()

      Specified by:
        `getEventsListeners` in interface `RealmModel`

    - #### setEventsListeners

          public void setEventsListeners(Set<String> listeners)

      Specified by:
        `setEventsListeners` in interface `RealmModel`

    - #### getMasterAdminApp

          public ApplicationModel getMasterAdminApp()

      Specified by:
        `getMasterAdminApp` in interface `RealmModel`

    - #### setMasterAdminApp

          public void setMasterAdminApp(ApplicationModel app)

      Specified by:
        `setMasterAdminApp` in interface `RealmModel`

    - #### getMongoEntity

          public MongoRealmEntity getMongoEntity()

      Specified by:
        `getMongoEntity` in class `AbstractMongoAdapter<MongoRealmEntity>`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `AbstractMongoAdapter<MongoRealmEntity>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `AbstractMongoAdapter<MongoRealmEntity>`

Copyright © 2014. All Rights Reserved.