Class JpaCookieAuthTokenObjectRepository
java.lang.Object
io.jmix.webdavrest.security.repository.impl.JpaCookieAuthTokenObjectRepository
- All Implemented Interfaces:
CookieAuthTokenObjectRepository
@Component
public class JpaCookieAuthTokenObjectRepository
extends Object
implements CookieAuthTokenObjectRepository
Stores cookie-token objects in database storage
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJpaCookieAuthTokenObjectRepository
(DataManager dataManager, WebdavProperties webdavProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected WebdavCookieAuthToken
void
void
removeToken
(CookieAuthTokenObject tokenObject) void
removeToken
(String tokenValue) void
saveToken
(CookieAuthTokenObject tokenObject) protected CookieAuthTokenObject
toDto
(WebdavCookieAuthToken entity)
-
Field Details
-
dataManager
-
webdavProperties
-
-
Constructor Details
-
JpaCookieAuthTokenObjectRepository
public JpaCookieAuthTokenObjectRepository(DataManager dataManager, WebdavProperties webdavProperties)
-
-
Method Details
-
saveToken
- Specified by:
saveToken
in interfaceCookieAuthTokenObjectRepository
-
getToken
- Specified by:
getToken
in interfaceCookieAuthTokenObjectRepository
-
removeToken
- Specified by:
removeToken
in interfaceCookieAuthTokenObjectRepository
-
removeToken
- Specified by:
removeToken
in interfaceCookieAuthTokenObjectRepository
-
removeExpiredTokens
public void removeExpiredTokens()- Specified by:
removeExpiredTokens
in interfaceCookieAuthTokenObjectRepository
-
loadToken
-
toDto
-