
Date: not yet released
Support for key rollover in PkiCredentialCollection. The collection uses a configurable clock, has methods for active, not yet active, no longer active and to-be-published credentials, and picks the signing credential with the latest active-from when several are active. The signing and encryption lookups accept a filter, and the collection is now thread safe. The predicates isActive, noLongerActive, isNotYetActive and forFutureSigning are deprecated. See #124.
New metadata properties revoked-at and revocation-reason. A revoked credential is regarded as no longer active. See #124.
New class JwkCredentialCollection for publishing the keys of a collection as JWK Sets and signing JWTs with the collection’s signing credential. The Spring Boot starter creates such a bean when the Nimbus module is on the classpath. See #124.
The JWK nbf property is now set from active-from when this is set, and revoked credentials get the revocation in their JWK. See #124.
Date: 2026-10-30
Lombok is no longer used.
PkiCredentialFactoryBean and PkiCredentialConfigurationProperties classes in the se.swedenconnect.security.credential.factory package. Use the classes in se.swedenconnect.security.credential.spring.factory and se.swedenconnect.security.credential.config.properties.set...Function methods of JwkTransformerFunction and OpenSamlCredentialTransformerFunction. Use the corresponding with...Function methods.JwkTransformerFunction.serializable(). Created JWKs are always serializable.credential.bundles.monitoring.* properties. Use credential.monitoring.*.Fixed a thread-safety bug in JwkTransformerFunction. A single SHA-256 digest instance was shared between all threads, so JWKs created concurrently could get an incorrect x5t#S256 thumbprint (or the call could fail).
Fixed the testing of EC keys used for encryption in DefaultCredentialTestFunction. Such keys were never actually tested, so a lost HSM connection was reported as healthy and the credential was not reloaded. The key is now tested using an ECDH key agreement. Keys of an unsupported algorithm now fail the test instead of being reported as working.
Credential monitoring (credential.monitoring.enabled) did nothing unless the application used @EnableScheduling. MonitorSchedulerAutoConfiguration now sets up a CredentialMonitorScheduler that uses the application’s TaskScheduler if there is one, and otherwise a dedicated scheduler.
The credential-monitor health endpoint always reported UP if the application defined its own DefaultCredentialMonitorBean. SpringCredentialBundlesAutoConfiguration now only sets up the health indicator to listen for monitoring events when the starter has created the monitor bean itself, and otherwise lets the indicator run its own tests.
The details of the credential-monitor health endpoint (CredentialMonitorHealthIndicator) kept old test and reload errors after a credential had recovered. Old error details are now cleared when a new test result is received.
A missing classpath resource (for example a mistyped key store location) resulted in an empty key store, or a NullPointerException for PEM files, instead of an error. DefaultConfigurationResourceLoader now throws a FileNotFoundException.
KeyStoreFactory did not close the input stream after loading a key store from a configured location, which leaked a file handle (or HTTP connection) for each loaded key store.
The credential cache of PkiCredentialFactory was keyed by the hash code of the configuration only, so two different configurations with the same hash code could return the wrong credential. The cache is now keyed by the configuration itself.
StoreConfigurationProperties lacked equals and hashCode, so identical key store configurations were never found in the credential cache, and a PKCS#11 key store could be loaded twice.
After a reload of an HSM credential, other threads could keep using the old (no longer working) private key. The private key reference in KeyStoreCredential and Pkcs11Credential is now safely shared between threads.
Loading certificates from a PKCS#11 device using SunPkcs11CertificatesAccessor failed with a NullPointerException when the key entry had no certificate chain, and could return an array holding null when no certificate was found.
A KeyStoreCredential for a PKCS#11 key store could not be created without a key password, even though the password is documented as optional. Such a credential is now created without reload support.
The PIN held by the reloader of a PKCS#11 KeyStoreCredential was not cleared from memory when the credential was destroyed.
The key store type pkcs11 (lower case) was rejected by KeyStoreFactory when no location was given, and not recognized by KeyStoreFactoryBean. The type is now case-insensitive everywhere.
AbstractKeyStorePkiCredentialContainer forgot about a generated key before it had been removed from the key store. If the removal failed (for example due to a lost HSM connection), the key was left in the key store and never removed later. Also, a key was left in the key store if creating its credential failed.
The expiry time of a key generated by AbstractKeyStorePkiCredentialContainer was read from the credential’s current certificate. Assigning a new certificate with a longer validity therefore extended the lifetime of the key. The expiry time is now fixed when the key is generated.
A certificate assigned to a credential from InMemoryPkiCredentialContainer was lost on the next call to getCredential.
DefaultCredentialMonitorBean never reloaded credentials without a test function, even those configured to be reloaded only. Such credentials are now reloaded.
Failed reloads were logged at INFO by DefaultCredentialMonitorBean, although the documentation says ERROR. Failures are now logged at ERROR when no callback is installed. Also, DefaultCredentialTestFunction reported a NullPointerException instead of the real error when a signing error had no message.
EncryptionMethodMetadata did not trim the algorithm, so a space before ; in an encryption method configuration ended up in the SAML metadata.
Date: 2026-04-24
Date: 2026-03-06
Date: 2026-01-19
Date: 2025-12-18
Access to the private key for KeyStoreCredential objects were synchornized,
which led to long waits when many threads tried to access the same key. This has
been changed and no synchronization is needed anymore.
See https://github.com/swedenconnect/credentials-support/issues/102.
The DefaultCredentialTestFunction was updated to test decryption for
credentials that are marked as encryption/decryption credentials.
See https://github.com/swedenconnect/credentials-support/issues/101.
The log warning credential.bundles.monitoring.* is assigned - use credential.monitoring.* instead was issued even
though no monitoring was configured. This has been fixed.
See https://github.com/swedenconnect/credentials-support/issues/98.
The JwkTransformerFunction.serializable() method has been deprecated, since the JWK will be serializable in all
cases, i.e., no KeyStore is included in the JWK anymore.
The customizer method JwkTransformerFunction.publicJwk() was introduces so that the JwkTransformerFunction can be
used to create a JWK to be included in metadata.
Date: 2025-11-07
-
Also, PkiCredentialCollectionConfiguration
and PkiCredentialCollectionConfigurationProperties
were added for configuration of
a PkiCredentialCollection.
Also, the method createCredentialCollection was added
to PkiCredentialFactory.
credential.collection.* property.-
The PkiCredential.Metadata class has been extended with additional credential metadata properties:
usage - For assigning a credential usage, for example “signing” or “encryption”.active-to and active-from - For enabling “future signing credentials” and “previous encryption credentials”.-
The OpenSamlMetadataProperties
class was extended with the encryption-methods property that enables assigning SAML metadata encryption methods to an
encryption credential.
md:KeyDescriptor element.Date: 2025-09-12
Dependency updates.
Fixed bug where StoreCredentialConfigurationProperties.KeyConfigurationProperties did not implement hashcode
and equals, making it impossible to cache.
We no longer assume that Spring Boot Actuator is on the classpath.
Date: 2025-05-08
Date: 2025-03-26
Date: 2025-02-26
Date: 2025-02-10
JwkTransformerFunction#serializable function was added.Date: 2025-01-21
The PropertyToPublicKeyConverter was added to the Spring Boot Starter autoconfiguration.
Fixed bug that occurred if the same PKCS#11 provider were used for several keys. See https://github.com/swedenconnect/credentials-support/issues/74.
Date: 2024-12-07
Date: 2024-12-06
Copyright © 2020-2026, Sweden Connect. Licensed under version 2.0 of the Apache License.