|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.ftp.simpleimpl.file.SimpleAuth
public class SimpleAuth

Simple Authentication based on a previously load XML file. Not to be used in production!
| Field Summary | |
|---|---|
String[] |
accounts
Multiple accounts |
boolean |
isAdmin
Is the current user an administrator (which can shutdown or change bandwidth limitation) |
String |
password
Password |
String |
user
User name |
| Constructor Summary | |
|---|---|
SimpleAuth(String user,
String password,
String[] accounts)
|
|
| Method Summary | |
|---|---|
boolean |
isAccountValid(String account)
Is the given account a valid one |
boolean |
isPasswordValid(String newpassword)
Is the given password a valid one |
void |
setAdmin(boolean isAdmin)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String user
public String password
public String[] accounts
public boolean isAdmin
| Constructor Detail |
|---|
public SimpleAuth(String user,
String password,
String[] accounts)
user - password - accounts - | Method Detail |
|---|
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 administrator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||