Package io.jmix.superset
Class SupersetProperties
java.lang.Object
io.jmix.superset.SupersetProperties
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SupersetProperties
public SupersetProperties(String url, String username, String password, @DefaultValue("1m") Duration accessTokenRefreshSchedule, @DefaultValue("true") boolean csrfProtectionEnabled, @DefaultValue("1m") Duration csrfTokenRefreshSchedule, @DefaultValue("7d") Duration csrfTokenExpiration, @DefaultValue("true") boolean tokensRefreshEnabled)
-
-
Method Details
-
getUrl
- Returns:
- Superset URL or
null
if not specified - See Also:
-
url
-
getUsername
- Returns:
- user name of Superset user or
null
if not specified - See Also:
-
username
-
getPassword
- Returns:
- password of Superset user or
null
if not specified - See Also:
-
password
-
getAccessTokenRefreshSchedule
- Returns:
- access token refresh schedule delay
- See Also:
-
accessTokenRefreshSchedule
-
isCsrfProtectionEnabled
public boolean isCsrfProtectionEnabled()- Returns:
true
if CSRF protection is enabled- See Also:
-
csrfProtectionEnabled
-
getCsrfTokenRefreshSchedule
- Returns:
- schedule delay that is used for getting new CSRF token
- See Also:
-
csrfTokenRefreshSchedule
-
getCsrfTokenExpiration
- Returns:
- a lifespan of CSRF token
- See Also:
-
csrfTokenExpiration
-
isTokensRefreshEnabled
public boolean isTokensRefreshEnabled()- Returns:
- is automatic tokens refresh enabled
- See Also:
-
tokensRefreshEnabled
-