[java-idp-plugin-webauthn] branch main updated: Replace deprecated method call

Phil Smart philip.smart at jisc.ac.uk
Fri Mar 7 17:35:37 UTC 2025


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=28b10561e63b3056369b821577f3db4aab65f13f

The following commit(s) were added to refs/heads/main by this push:
     new 28b1056  Replace deprecated method call
28b1056 is described below

commit 28b10561e63b3056369b821577f3db4aab65f13f
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Mar 7 17:35:34 2025 +0000

    Replace deprecated method call
---
 .../storage/impl/IdPStorageServiceCredentialRespository.java        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespository.java b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespository.java
index b7fde72..6eeca45 100644
--- a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespository.java
+++ b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/storage/impl/IdPStorageServiceCredentialRespository.java
@@ -577,8 +577,10 @@ public class IdPStorageServiceCredentialRespository extends AbstractIdentifiable
             assert updatedCredential != null;
             // Create a new credential from the existing credential, keeping the all the fields the same other than
             // the registered credential (which itself should only have the signature counter updated).
-            final CredentialRecord updatedRegistration = credential.get().withCredential(updatedCredential);
-            
+            final CredentialRecord updatedRegistration = credential.get().toBuilder()
+                    .withCredential(updatedCredential)
+                    .build();
+
             final Set<CredentialRecord> updateCredentialSet = 
                     new LinkedHashSet<>(existingRegistrations.getCredentials());
             updateCredentialSet.remove(credential.get());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list