Package com.bank.auth_service.repository
Interface RefreshTokenRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RefreshToken,,UUID> org.springframework.data.jpa.repository.JpaRepository<RefreshToken,,UUID> org.springframework.data.repository.ListCrudRepository<RefreshToken,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<RefreshToken,,UUID> org.springframework.data.repository.PagingAndSortingRepository<RefreshToken,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<RefreshToken>,org.springframework.data.repository.Repository<RefreshToken,UUID>
public interface RefreshTokenRepository
extends org.springframework.data.jpa.repository.JpaRepository<RefreshToken,UUID>
Repository interface for managing
RefreshToken entities.
Handles access to refresh token data.- Since:
- 1.0.0
- Version:
- 1.0.0, 06/23/2025
- Author:
- Fernando Cruz Cavina
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByRefreshToken(UUID refreshToken) Finds a refresh token by its UUID value.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByRefreshToken
Finds a refresh token by its UUID value.- Parameters:
refreshToken- the UUID of the refresh token- Returns:
- an
Optionalcontaining the token, if found
-