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 final boolean isPasswordValid(String newpassword)
newpassword
- public final boolean isAccountValid(String account)
account
- public final void setAdmin(boolean isAdmin)
isAdmin
- True if the user should be an administratorpublic final boolean isAdmin()
public final String getUser()
Copyright © 2009–2022 Waarp. All rights reserved.