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 125
125
import org .springframework .security .saml2 .provider .service .authentication .TestSaml2RedirectAuthenticationRequests ;
126
126
import org .springframework .security .web .authentication .WebAuthenticationDetails ;
127
127
import 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 ;
128
130
129
131
import static org .assertj .core .api .Assertions .assertThat ;
130
132
import static org .assertj .core .api .Assertions .fail ;
@@ -321,6 +323,8 @@ class SpringSecurityCoreVersionSerializableTests {
321
323
token .setDetails (details );
322
324
return token ;
323
325
});
326
+ generatorByClassName .put (PublicKeyCredentialUserEntity .class ,
327
+ (r ) -> TestPublicKeyCredentialUserEntity .userEntity ().build ());
324
328
}
325
329
326
330
@ ParameterizedTest
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .security .web .webauthn .api ;
18
18
19
+ import java .io .Serializable ;
19
20
import java .security .SecureRandom ;
20
21
import java .util .Arrays ;
21
22
import java .util .Base64 ;
22
23
24
+ import org .springframework .security .core .SpringSecurityCoreVersion ;
23
25
import org .springframework .util .Assert ;
24
26
25
27
/**
28
30
* @author Rob Winch
29
31
* @since 6.4
30
32
*/
31
- public final class Bytes {
33
+ public final class Bytes implements Serializable {
34
+
35
+ private static final long serialVersionUID = SpringSecurityCoreVersion .SERIAL_VERSION_UID ;
32
36
33
37
private static final SecureRandom RANDOM = new SecureRandom ();
34
38
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .security .web .webauthn .api ;
18
18
19
+ import java .io .Serializable ;
20
+
19
21
/**
20
22
* <a href=
21
23
* "https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialuserentity">PublicKeyCredentialUserEntity</a>
27
29
* @since 6.4
28
30
* @see org.springframework.security.web.webauthn.management.WebAuthnRelyingPartyOperations#authenticate(org.springframework.security.web.webauthn.management.RelyingPartyAuthenticationRequest)
29
31
*/
30
- public interface PublicKeyCredentialUserEntity {
32
+ public interface PublicKeyCredentialUserEntity extends Serializable {
31
33
32
34
/**
33
35
* The <a href=
You can’t perform that action at this time.
0 commit comments