Class DatarouterAccount
java.lang.Object
io.datarouter.model.databean.BaseDatabean<DatarouterAccountKey,DatarouterAccount>
io.datarouter.auth.storage.account.DatarouterAccount
- All Implemented Interfaces:
io.datarouter.model.databean.Databean<DatarouterAccountKey,DatarouterAccount>,java.lang.Comparable<io.datarouter.model.databean.Databean<?,?>>
public class DatarouterAccount extends io.datarouter.model.databean.BaseDatabean<DatarouterAccountKey,DatarouterAccount>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatarouterAccount.DatarouterAccountFielder -
Field Summary
-
Constructor Summary
Constructors Constructor Description DatarouterAccount()DatarouterAccount(java.lang.String accountName, java.util.Date created, java.lang.String creator) -
Method Summary
Modifier and Type Method Description java.lang.StringgetApiKey()booleangetEnableUserMappings()java.lang.Class<DatarouterAccountKey>getKeyClass()java.lang.StringgetLastUsedDate(java.time.ZoneId zoneId)java.lang.StringgetSecretKey()voidresetApiKey()voidresetApiKeyToDefault(java.lang.String defaultApiKey)voidresetSecretKey()voidresetSecretKeyToDefault(java.lang.String defaultSecretKey)voidsetEnableUserMappings(boolean enableUserMappings)voidsetLastUsed(java.util.Date lastUsed)voidtoggleUserMappings()
-
Constructor Details
-
DatarouterAccount
public DatarouterAccount() -
DatarouterAccount
public DatarouterAccount(java.lang.String accountName, java.util.Date created, java.lang.String creator)
-
-
Method Details
-
getKeyClass
-
getApiKey
public java.lang.String getApiKey() -
getSecretKey
public java.lang.String getSecretKey() -
resetApiKeyToDefault
public void resetApiKeyToDefault(java.lang.String defaultApiKey) -
resetSecretKeyToDefault
public void resetSecretKeyToDefault(java.lang.String defaultSecretKey) -
resetApiKey
public void resetApiKey() -
resetSecretKey
public void resetSecretKey() -
setLastUsed
public void setLastUsed(java.util.Date lastUsed) -
getLastUsedDate
public java.lang.String getLastUsedDate(java.time.ZoneId zoneId) -
toggleUserMappings
public void toggleUserMappings() -
getEnableUserMappings
public boolean getEnableUserMappings() -
setEnableUserMappings
public void setEnableUserMappings(boolean enableUserMappings)
-