Package de.xima.fc.dao.interfaces
Interface IUserRefreshTokenDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserRefreshToken,UUID,IEntityContext>
- All Known Implementing Classes:
UserRefreshTokenDao
public interface IUserRefreshTokenDao extends de.xima.cmn.dao.interfaces.IAbstractDao<UserRefreshToken,UUID,IEntityContext>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserRefreshToken
createRefreshToken(IEntityContext ec, String userProfileId, String issuer, IClientDescriptor clientDescriptor)
List<UserRefreshToken>
getAllByUser(IEntityContext ec, IUser user)
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 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
-
removeExpiredTokens
int removeExpiredTokens(IEntityContext ec)
-
updateRefreshToken
UserRefreshToken updateRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor) throws InvalidTokenException, UnknownTokenException
-
createRefreshToken
UserRefreshToken createRefreshToken(IEntityContext ec, String userProfileId, String issuer, IClientDescriptor clientDescriptor) throws TokenCreateException
- Throws:
TokenCreateException
-
getTokenConfiguration
TokenConfiguration getTokenConfiguration(IEntityContext ec)
-
getRefreshTokenSecret
String getRefreshTokenSecret(IEntityContext ec)
-
regenerateIdTokenSecret
String regenerateIdTokenSecret(IEntityContext ec)
-
regenerateAccessTokenSecret
String regenerateAccessTokenSecret(IEntityContext ec)
-
regenerateRefreshTokenSecret
String regenerateRefreshTokenSecret(IEntityContext ec)
-
removeRefreshToken
boolean removeRefreshToken(IEntityContext ec, String refreshToken, IClientDescriptor clientDescriptor)
-
getAllByUser
List<UserRefreshToken> getAllByUser(IEntityContext ec, IUser user)
-
-