|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Authenticatable<E extends AuthenticationListEntry>
Indicates that the implementer can be logged-into and out-of.
| Method Summary | |
|---|---|
boolean |
isLoggedIn(java.lang.String username)
Indicates whether or not the supplied username is currently logged-in to the system. |
boolean |
login(E entry,
java.lang.String sessionId)
Determines whether a user can log in (based on the content of entry and its originating IP address (address)). |
boolean |
logout(E entry,
java.lang.String sessionId)
Logs the user out of the system (based on the content of entry and its originating IP address (address)). |
| Method Detail |
|---|
boolean login(E entry,
java.lang.String sessionId)
entry - the information about the user attempting to log in (username / password, etc.).sessionId - the session id for the connected socket.
boolean logout(E entry,
java.lang.String sessionId)
entry - the information about the user attempting to log out (username / password, etc.).address - the originating IP address for the logout attempt.
boolean isLoggedIn(java.lang.String username)
username - the username to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||