Interface ImpersonationTokenNonceRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,,String> com.broadleafcommerce.common.extension.DomainTypeAware,org.springframework.data.repository.Repository<D,String>
- All Known Subinterfaces:
JpaImpersonationTokenNonceRepository<D>
@NoRepositoryBean
public interface ImpersonationTokenNonceRepository<D>
extends org.springframework.data.repository.CrudRepository<D,String>, com.broadleafcommerce.common.extension.DomainTypeAware
Repository for managing the
JpaImpersonationTokenNonce.- Since:
- Authentication Service 2.1.4, Release Train 2.1.4, Authentication Service 2.2.0, Release Train 2.2.0
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionfindByNonce(String nonce) Retrieves aJpaImpersonationTokenNoncefor the provided "nonce" value.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findByNonce
Retrieves aJpaImpersonationTokenNoncefor the provided "nonce" value.- Parameters:
nonce- the nonce value to search- Returns:
- the entity with the given nonce value or Optional#empty() if none found.
-