Class Config

java.lang.Object
de.joergdev.mosy.backend.Config

public class Config extends Object
  • Field Details

    • SYSTEM_PROPERTY_LOGIN_SECRET

      public static final String SYSTEM_PROPERTY_LOGIN_SECRET
       MOSY_LOGIN_SECRET
       
       Only used if multi-tenancy is NOT enbled.
       If system property is not set, login secret of mosy_backend.properties is used.
       
      See Also:
    • SYSTEM_PROPERTY_MULTI_TENANCY_ENABLED

      public static final String SYSTEM_PROPERTY_MULTI_TENANCY_ENABLED
       MOSY_MULTI_TENANCY_ENABLED
       
       If system property is not set, value of mosy_backend.properties is used.
       
       The default is false (no multi tenancy per default).
       
      See Also:
    • DUMMY_TENANT_NAME_NON_MULTI_TENANCY

      public static final String DUMMY_TENANT_NAME_NON_MULTI_TENANCY
      See Also:
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • getLoginSecret

      public static int getLoginSecret()
      Get the login secret from system-property (SYSTEM_PROPERTY_LOGIN_SECRET or from mosy_backend.properties. If multi-tenancy is used the login secret is stored per Tenant!
      Returns:
      int - secret hash
    • isMultiTenancyEnabled

      public static boolean isMultiTenancyEnabled()