Interface IUserTokenHandler
- All Superinterfaces:
IAPIHandler, IGenericHandler, Serializable
- All Known Implementing Classes:
UserTokenHandler
Handler for
UserRefreshToken entities- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptioncreateRefreshToken(UserContext uc, RefreshTokenUserDataDTO refreshTokenUserDataDTO, String issuer, IClientDescriptor clientDescriptor) getRefreshTokenUserData(UserContext uc, @NotNull String refreshToken) getRefreshTokenUserData(UserContext uc, @NotNull UUID refreshTokenId) getUserRefreshTokens(UserContext uc, IUser user) booleanisValidRefreshToken(UserContext uc, UUID refreshTokenId) booleanremoveRefreshToken(UserContext uc, UserRefreshToken token) booleanremoveRefreshToken(UserContext uc, String refreshToken) updateRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor) Methods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
getTokenConfiguration
-
updateRefreshToken
UserRefreshToken updateRefreshToken(UserContext uc, String refreshToken, IClientDescriptor clientDescriptor) throws InvalidTokenException, UnknownTokenException -
createRefreshToken
UserRefreshToken createRefreshToken(UserContext uc, RefreshTokenUserDataDTO refreshTokenUserDataDTO, String issuer, IClientDescriptor clientDescriptor) throws TokenCreateException - Throws:
TokenCreateException
-
removeRefreshToken
-
removeRefreshToken
-
getUserRefreshTokens
-
isValidRefreshToken
-
getRefreshTokenUserData
RefreshTokenUserDataDTO getRefreshTokenUserData(UserContext uc, @NotNull @NotNull UUID refreshTokenId) throws InvalidTokenException - Throws:
InvalidTokenException
-
getRefreshTokenUserData
RefreshTokenUserDataDTO getRefreshTokenUserData(UserContext uc, @NotNull @NotNull String refreshToken) throws InvalidTokenException - Throws:
InvalidTokenException
-