Interface CustomizedRememberMeTokenEntityRepository<D>
- Type Parameters:
D
- the persisted domain type ofPersistentRememberMeToken
- All Known Subinterfaces:
JpaRememberMeTokenEntityRepository<D>
,RememberMeTokenEntityRepository<D>
- All Known Implementing Classes:
JpaCustomizedRememberMeTokenEntityRepository
public interface CustomizedRememberMeTokenEntityRepository<D>
Additional functionality for
RememberMeTokenEntityRepository
.-
Method Summary
Modifier and TypeMethodDescriptionint
deleteBySeriesAndUsername
(String series, String username) Deletes allPersistentRememberMeToken
records in the datastore for the given series/username.int
deleteByUsername
(String username) Deletes allPersistentRememberMeToken
records in the datastore for the given user.void
Saves the givenrememberMeToken
.void
updateBySeries
(String series, String tokenValue, Instant lastUsed) Finds and updates the existing token in the datastore byseries
.
-
Method Details
-
save
Saves the givenrememberMeToken
.- Parameters:
rememberMeToken
- the token to save
-
updateBySeries
Finds and updates the existing token in the datastore byseries
.- Parameters:
series
- thePersistentRememberMeToken.getSeries()
to use to find the token to updatetokenValue
- the newPersistentRememberMeToken.getTokenValue()
to set on the tokenlastUsed
- the newPersistentRememberMeToken.getDate()
to set on the token
-
deleteByUsername
Deletes allPersistentRememberMeToken
records in the datastore for the given user.- Parameters:
username
- thePersistentRememberMeToken.getUsername()
for which all tokens should be deleted- Returns:
- the number of deleted rows
-
deleteBySeriesAndUsername
Deletes allPersistentRememberMeToken
records in the datastore for the given series/username.- Parameters:
series
- thePersistentRememberMeToken.getSeries()
that must match for the token to be deletedusername
- thePersistentRememberMeToken.getUsername()
that must match for the token to be deleted- Returns:
- the number of deleted rows
-