[java-idp-plugin-webauthn] branch main updated: Fix method call in credential repository

Phil Smart philip.smart at jisc.ac.uk
Wed Feb 19 17:42:23 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=9554c91f4d749d4ba9de4d7fe25a38f5befbae53

The following commit(s) were added to refs/heads/main by this push:
     new 9554c91  Fix method call in credential repository
9554c91 is described below

commit 9554c91f4d749d4ba9de4d7fe25a38f5befbae53
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Feb 19 17:42:21 2025 +0000

    Fix method call in credential repository
    
     - Forgot to remove a reference to a new method that has yet to be
    merged in.
---
 .../webauthn/storage/impl/IdPStorageServiceCredentialRespository.java | 4 +---
 1 file changed, 1 insertion(+), 3 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 6175bf7..6e5fdfc 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
@@ -547,9 +547,7 @@ 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().toBuilder()
-                    .withCredential(updatedCredential)
-                    .build();     
+            final CredentialRecord updatedRegistration = credential.get().withCredential(updatedCredential);
             
             final Set<CredentialRecord> updateCredentialSet = 
                     new LinkedHashSet<>(existingRegistrations.getCredentials());

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


More information about the commits mailing list