File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
config/src/test/java/org/springframework/security
web/src/main/java/org/springframework/security/web/webauthn/api Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 125125import org .springframework .security .saml2 .provider .service .authentication .TestSaml2RedirectAuthenticationRequests ;
126126import org .springframework .security .web .authentication .WebAuthenticationDetails ;
127127import org .springframework .security .web .authentication .preauth .PreAuthenticatedAuthenticationToken ;
128+ import org .springframework .security .web .webauthn .api .PublicKeyCredentialUserEntity ;
129+ import org .springframework .security .web .webauthn .api .TestPublicKeyCredentialUserEntity ;
128130
129131import static org .assertj .core .api .Assertions .assertThat ;
130132import static org .assertj .core .api .Assertions .fail ;
@@ -321,6 +323,8 @@ class SpringSecurityCoreVersionSerializableTests {
321323 token .setDetails (details );
322324 return token ;
323325 });
326+ generatorByClassName .put (PublicKeyCredentialUserEntity .class ,
327+ (r ) -> TestPublicKeyCredentialUserEntity .userEntity ().build ());
324328 }
325329
326330 @ ParameterizedTest
Original file line number Diff line number Diff line change 1616
1717package org .springframework .security .web .webauthn .api ;
1818
19+ import java .io .Serializable ;
1920import java .security .SecureRandom ;
2021import java .util .Arrays ;
2122import java .util .Base64 ;
2223
24+ import org .springframework .security .core .SpringSecurityCoreVersion ;
2325import org .springframework .util .Assert ;
2426
2527/**
2830 * @author Rob Winch
2931 * @since 6.4
3032 */
31- public final class Bytes {
33+ public final class Bytes implements Serializable {
34+
35+ private static final long serialVersionUID = SpringSecurityCoreVersion .SERIAL_VERSION_UID ;
3236
3337 private static final SecureRandom RANDOM = new SecureRandom ();
3438
Original file line number Diff line number Diff line change 1616
1717package org .springframework .security .web .webauthn .api ;
1818
19+ import java .io .Serializable ;
20+
1921/**
2022 * <a href=
2123 * "https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialuserentity">PublicKeyCredentialUserEntity</a>
2729 * @since 6.4
2830 * @see org.springframework.security.web.webauthn.management.WebAuthnRelyingPartyOperations#authenticate(org.springframework.security.web.webauthn.management.RelyingPartyAuthenticationRequest)
2931 */
30- public interface PublicKeyCredentialUserEntity {
32+ public interface PublicKeyCredentialUserEntity extends Serializable {
3133
3234 /**
3335 * The <a href=
You can’t perform that action at this time.
0 commit comments