public class SimpleAuth extends Object
Constructor and Description |
---|
SimpleAuth(String user,
String password,
String[] accounts,
String storCmd,
long storDelay,
String retrCmd,
long retrDelay) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAccounts() |
AbstractExecutor.CommandExecutor |
getCommandExecutor() |
String |
getPassword() |
String |
getRetrCmd() |
long |
getRetrDelay() |
String |
getStorCmd() |
long |
getStorDelay() |
String |
getUser() |
boolean |
isAccountValid(String account)
Is the given account a valid one
|
boolean |
isAdmin() |
boolean |
isPasswordValid(String newpassword)
Is the given password a valid one
|
void |
setAdmin(boolean isAdmin) |
public boolean isPasswordValid(String newpassword)
newpassword
- public boolean isAccountValid(String account)
account
- public void setAdmin(boolean isAdmin)
isAdmin
- True if the user should be an administratorpublic String getUser()
public String getPassword()
public String[] getAccounts()
public boolean isAdmin()
public String getStorCmd()
public long getStorDelay()
public String getRetrCmd()
public long getRetrDelay()
public AbstractExecutor.CommandExecutor getCommandExecutor()
Copyright © 2009–2020 Waarp. All rights reserved.