|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.services.authentication.AuthenticationList<E>
public class AuthenticationList<E extends AuthenticationListEntry>
Contains a HashMap of AuthenticationListEntry's that are hashed on their
username values. Raw passwords are never serialized using this object, only
one-way hashes of them (see
AuthenticationListEntry).
Instances of this should be used by a server to determine valid usernames and
passwords; generally, a serialized instance of this is used as a backing
store for such servers.
Most methods in this class are synchronized, so that they cannot be
interleaved on multiple threads. This should prevent consistency errors.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, NORMAL, UTF16, UTF16_LE, UTF8 |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
AuthenticationList()
No-argument constructor for XML translation. |
|
| Method Summary | |
|---|---|
boolean |
add(E entry)
Adds the given entry to this. |
java.lang.Object |
clone()
Cloning AuthenticationLists is not allowed, because it is a security violation. |
boolean |
contains(AuthenticationListEntry entry)
Checks to see if this contains the username given in entry; returns true if it does. |
boolean |
contains(java.lang.String username)
Checks to see if this contains the given username; returns true if it does. |
int |
getAccessLevel(AuthenticationListEntry entry)
Retrieves the access level for the given entry. |
boolean |
isValid(AuthenticationListEntry entry)
Checks entry against the entries contained in this. |
boolean |
remove(AuthenticationListEntry entry)
Attempts to remove the given object; this will succeed if and only if the following are true: 1.) the Object is of type AuthenticationListEntry 2.) this list contains the AuthenticationListEntry 3.) the AuthenticationListEntry's username and password both match the one in this list |
java.lang.String |
toString()
Returns a String indicating the number of entries in the AuthenticationList. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationList()
| Method Detail |
|---|
public boolean add(E entry)
public final java.lang.Object clone()
throws java.lang.UnsupportedOperationException
clone in class java.lang.Objectjava.lang.UnsupportedOperationExceptionpublic boolean contains(AuthenticationListEntry entry)
entry -
public boolean contains(java.lang.String username)
username -
public int getAccessLevel(AuthenticationListEntry entry)
entry -
public boolean isValid(AuthenticationListEntry entry)
entry -
public boolean remove(AuthenticationListEntry entry)
entry - the AuthenticationListEntry (username / password) to attempt to
remove.public java.lang.String toString()
toString in class Debug
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||