|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.filter.authenticate.AuthUserInfo
public class AuthUserInfo
Information about an authenticated user.
Constructor Summary | |
---|---|
AuthUserInfo(String token,
long timeout,
InetAddress sa)
A user has successfully managed to authenticat |
Method Summary | |
---|---|
boolean |
correctSocketAddress(InetAddress sa)
Check if the user is still using the same InetAddress |
boolean |
correctToken(String token)
Check if the given token matches the token for this user |
boolean |
stillValid()
Check if this authentication is still valid. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuthUserInfo(String token, long timeout, InetAddress sa)
token
- the token usedtimeout
- the timeout in millissa
- the InetAddress the user came fromMethod Detail |
---|
public String toString()
toString
in class Object
public boolean stillValid()
public boolean correctToken(String token)
token
- the new token to validate
public boolean correctSocketAddress(InetAddress sa)
sa
- the new InetAddress of the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |