public class SimpleAuth extends Object
Constructor and Description |
---|
SimpleAuth(String user,
String password,
String[] accounts) |
Modifier and Type | Method and Description |
---|---|
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 boolean isAdmin()
public String getUser()
Copyright © 2009–2019 Waarp. All rights reserved.