com.niggle.data
Interface Session
- All Known Implementing Classes:
- SessionImpl
- public interface Session
Interface that represents a session
- Author:
- Jonathan Revusky
Method Summary |
java.lang.String |
getUniqueKey()
Get the unique key that identifies this session. |
boolean |
isValidSession(java.lang.String username)
Is this a valid session for the given username? |
getUniqueKey
public java.lang.String getUniqueKey()
- Get the unique key that identifies this session.
This should be difficult to guess, of course. Of course,
just just how difficult might depend on your requirements.
You would want something that is cryptographically random.
isValidSession
public boolean isValidSession(java.lang.String username)
- Is this a valid session for the given username?