Class JdbcRotationManager
java.lang.Object
de.adorsys.keymanagement.keyrotation.jdbc.JdbcRotationManager
- All Implemented Interfaces:
KeyStorePersistence,RotationLocker
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcRotationManager(String keyStoreId, DataSource dataSource, String lockTableName, String keyStoreTableName, Duration lockAtMost) KeyStore persistence and rotation locking belong to same Database.JdbcRotationManager(String keyStoreId, DataSource dataSource, net.javacrumbs.shedlock.core.LockProvider lockProvider, String keyStoreTableName, Duration lockAtMost) KeyStore persistence happens in JDBC, but locking is provided by other provider (other RDBMS/database, Redis,...) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexecuteWithLock(Runnable runnable) byte[]read()voidwrite(byte[] keyStore)
-
Constructor Details
-
JdbcRotationManager
public JdbcRotationManager(String keyStoreId, DataSource dataSource, String lockTableName, String keyStoreTableName, Duration lockAtMost) KeyStore persistence and rotation locking belong to same Database. -
JdbcRotationManager
public JdbcRotationManager(String keyStoreId, DataSource dataSource, net.javacrumbs.shedlock.core.LockProvider lockProvider, String keyStoreTableName, Duration lockAtMost) KeyStore persistence happens in JDBC, but locking is provided by other provider (other RDBMS/database, Redis,...)
-
-
Method Details
-
read
@Nullable public byte[] read()- Specified by:
readin interfaceKeyStorePersistence
-
write
public void write(byte[] keyStore) - Specified by:
writein interfaceKeyStorePersistence
-
executeWithLock
- Specified by:
executeWithLockin interfaceRotationLocker
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceRotationLocker
-