|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RememberMeTokenDao
Each Seraph ready application needs to provide a spi Dao to hold and return remember me cookie information against a user.
Method Summary | |
---|---|
RememberMeToken |
findById(Long tokenId)
Finds the token with the given id. |
List<RememberMeToken> |
findForUserName(String userName)
This will return a list of the RememberMeToken that a user currently has. |
void |
remove(Long tokenId)
Removes the specific token given the id |
void |
removeAll()
Can be called to remove all tokens for all users. |
void |
removeAllForUser(String username)
Called to remove ALL tokens that are stored for the specificed user This method is not used by the Seraph code per se but its specified as part of the Atlassian RememberMe tech spec. |
RememberMeToken |
save(RememberMeToken token)
This will be called to save the presented token to the database against the specified user. |
Method Detail |
---|
RememberMeToken findById(Long tokenId)
tokenId
- the id of the token
RememberMeToken save(RememberMeToken token)
token
- the token in play
List<RememberMeToken> findForUserName(String userName)
userName
- the username to look up tokens for
RememberMeToken
s or an EMPTY list if there are nonevoid remove(Long tokenId)
tokenId
- the id of the token to removevoid removeAllForUser(String username)
username
- the username in questionvoid removeAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |