public class XmlAccoutStorage extends java.lang.Object implements AccountStorage
Constructor and Description |
---|
XmlAccoutStorage(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
addAcccount(LocalCredentials credentials) |
boolean |
exists(java.lang.String name) |
LocalCredentials |
getAccount(java.lang.String accountName) |
java.util.List<LocalCredentials> |
getAccounts() |
boolean |
isAuthenticated(java.lang.String accountName) |
void |
removeAccount(java.lang.String accountName) |
void |
setAuthToken(java.lang.String accountName,
java.lang.String token) |
void |
setRecoveryToken(java.lang.String accountName,
java.lang.String token) |
public void addAcccount(LocalCredentials credentials)
addAcccount
in interface AccountStorage
public void removeAccount(java.lang.String accountName)
removeAccount
in interface AccountStorage
public LocalCredentials getAccount(java.lang.String accountName)
getAccount
in interface AccountStorage
public boolean isAuthenticated(java.lang.String accountName)
isAuthenticated
in interface AccountStorage
public void setAuthToken(java.lang.String accountName, java.lang.String token)
setAuthToken
in interface AccountStorage
public void setRecoveryToken(java.lang.String accountName, java.lang.String token)
setRecoveryToken
in interface AccountStorage
public java.util.List<LocalCredentials> getAccounts()
getAccounts
in interface AccountStorage
public boolean exists(java.lang.String name)
exists
in interface AccountStorage