public class GoogleUserDAO extends SQLDAO
Constructor and Description |
---|
GoogleUserDAO() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateNonce(UserIdentity userId)
This generates a new nonce from the given UserId, replacing the old one if one was present
|
java.lang.String |
getGoogleUserId(UserIdentity userId) |
OAuth2Token |
getToken(UserIdentity userId) |
UserIdentity |
getUser(java.lang.String nonce) |
void |
removeNonce(java.lang.String nonce)
Removes the given nonce if such exists
|
void |
removeToken(UserIdentity userId)
remove token from the given userIdentity if one exists
|
boolean |
setToken(java.lang.String googleUserId,
OAuth2Token token,
UserIdentity userId) |
getTransactionTemplate, setDataSource, setTnxManager
public GoogleUserDAO()
public boolean setToken(java.lang.String googleUserId, OAuth2Token token, UserIdentity userId)
googleUserId
- token
- userId
- public java.lang.String getGoogleUserId(UserIdentity userId)
userId
- non-null, valid useridpublic void removeNonce(java.lang.String nonce)
nonce
- public OAuth2Token getToken(UserIdentity userId)
userId
- public java.lang.String generateNonce(UserIdentity userId)
userId
- public void removeToken(UserIdentity userId)
userId
- public UserIdentity getUser(java.lang.String nonce)
nonce
- Copyright © 2015 Tampere University of Technology, Pori Department.