More cleanup

This commit is contained in:
Dario Ghunney Ware 2025-07-30 13:13:26 +01:00
parent f6d35f1c2e
commit 9d90ff4cc3
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ security:
spCert: classpath:saml-public-cert.crt # Your signing certificate. Generated from your keypair
jwt:
enableKeyStore: true # Set to 'true' to enable JWT key store
enableKeyRotation: false # Set to 'true' to enable JWT key rotation
enableKeyRotation: true # Set to 'true' to enable JWT key rotation
enableKeyCleanup: true # Set to 'true' to enable JWT key cleanup
keyRetentionDays: 7 # Number of days to retain old keys. The default is 7 days.
cleanupBatchSize: 100 # Number of keys to clean up in each batch. The default is 100.

View File

@ -153,7 +153,7 @@ public class JwtKeystoreService implements JwtKeystoreServiceInterface {
}
private KeyPair generateRSAKeypair() {
KeyPairGenerator keyPairGenerator = null;
KeyPairGenerator keyPairGenerator;
try {
keyPairGenerator = KeyPairGenerator.getInstance("RSA");