Package de.xima.fc.dao.impl
Class UserRefreshTokenDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<UserRefreshToken,UUID,IEntityContext>
-
- de.xima.fc.dao.impl.UserRefreshTokenDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserRefreshToken,UUID,IEntityContext>
,IUserRefreshTokenDao
public class UserRefreshTokenDao extends de.xima.cmn.dao.AbstractDao<UserRefreshToken,UUID,IEntityContext> implements IUserRefreshTokenDao
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserRefreshToken
createRefreshToken(IEntityContext ec, String userProfileId, String issuer, IClientDescriptor clientDescriptor)
List<UserRefreshToken>
getAllByUser(IEntityContext ec, IUser user)
static UserRefreshTokenDao
getInstance()
String
getRefreshTokenSecret(IEntityContext ec)
TokenConfiguration
getTokenConfiguration(IEntityContext ec)
String
regenerateAccessTokenSecret(IEntityContext ec)
String
regenerateIdTokenSecret(IEntityContext ec)
String
regenerateRefreshTokenSecret(IEntityContext ec)
int
removeExpiredTokens(IEntityContext ec)
boolean
removeRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor)
UserRefreshToken
updateRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor)
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getPostActionHook, getPreActionHook, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
-
-
-
Method Detail
-
getInstance
public static UserRefreshTokenDao getInstance()
-
removeExpiredTokens
public int removeExpiredTokens(IEntityContext ec)
- Specified by:
removeExpiredTokens
in interfaceIUserRefreshTokenDao
-
removeRefreshToken
public boolean removeRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor)
- Specified by:
removeRefreshToken
in interfaceIUserRefreshTokenDao
-
getAllByUser
public List<UserRefreshToken> getAllByUser(IEntityContext ec, IUser user)
- Specified by:
getAllByUser
in interfaceIUserRefreshTokenDao
-
updateRefreshToken
public UserRefreshToken updateRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor) throws InvalidTokenException, UnknownTokenException
- Specified by:
updateRefreshToken
in interfaceIUserRefreshTokenDao
- Throws:
InvalidTokenException
UnknownTokenException
-
createRefreshToken
public UserRefreshToken createRefreshToken(IEntityContext ec, String userProfileId, String issuer, IClientDescriptor clientDescriptor) throws TokenCreateException
- Specified by:
createRefreshToken
in interfaceIUserRefreshTokenDao
- Throws:
TokenCreateException
-
getTokenConfiguration
public TokenConfiguration getTokenConfiguration(IEntityContext ec)
- Specified by:
getTokenConfiguration
in interfaceIUserRefreshTokenDao
-
getRefreshTokenSecret
public String getRefreshTokenSecret(IEntityContext ec)
- Specified by:
getRefreshTokenSecret
in interfaceIUserRefreshTokenDao
-
regenerateIdTokenSecret
public String regenerateIdTokenSecret(IEntityContext ec)
- Specified by:
regenerateIdTokenSecret
in interfaceIUserRefreshTokenDao
-
regenerateAccessTokenSecret
public String regenerateAccessTokenSecret(IEntityContext ec)
- Specified by:
regenerateAccessTokenSecret
in interfaceIUserRefreshTokenDao
-
regenerateRefreshTokenSecret
public String regenerateRefreshTokenSecret(IEntityContext ec)
- Specified by:
regenerateRefreshTokenSecret
in interfaceIUserRefreshTokenDao
-
-