Package de.joergdev.mosy.backend
Class Config
java.lang.Object
de.joergdev.mosy.backend.Config
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGet the login secret from system-property (SYSTEM_PROPERTY_LOGIN_SECRETor from mosy_backend.properties.static boolean
-
Field Details
-
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
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
- See Also:
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getLoginSecret
public static int getLoginSecret()Get the login secret from system-property (SYSTEM_PROPERTY_LOGIN_SECRETor 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()
-