Skip to content

Commit c04463a

Browse files
Implement Serial for PublicKeyCredentialCreationOptions
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent f96b9bb commit c04463a

14 files changed

+55
-14
lines changed

web/src/main/java/org/springframework/security/web/webauthn/api/AttestationConveyancePreference.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,9 @@
1616

1717
package org.springframework.security.web.webauthn.api;
1818

19+
import java.io.Serial;
20+
import java.io.Serializable;
21+
1922
/**
2023
* <a href="https://www.w3.org/TR/webauthn-3/#webauthn-relying-party">WebAuthn Relying
2124
* Parties</a> may use <a href=
@@ -26,7 +29,10 @@
2629
* @author Rob Winch
2730
* @since 6.4
2831
*/
29-
public final class AttestationConveyancePreference {
32+
public final class AttestationConveyancePreference implements Serializable {
33+
34+
@Serial
35+
private static final long serialVersionUID = -4821525312099695991L;
3036

3137
/**
3238
* The <a href=

web/src/main/java/org/springframework/security/web/webauthn/api/AuthenticatorSelectionCriteria.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,9 @@
1616

1717
package org.springframework.security.web.webauthn.api;
1818

19+
import java.io.Serial;
20+
import java.io.Serializable;
21+
1922
/**
2023
* <a href=
2124
* "https://www.w3.org/TR/webauthn-3/#dictdef-authenticatorselectioncriteria">AuthenticatorAttachment</a>
@@ -31,7 +34,10 @@
3134
* @since 6.4
3235
* @see PublicKeyCredentialCreationOptions#getAuthenticatorSelection()
3336
*/
34-
public final class AuthenticatorSelectionCriteria {
37+
public final class AuthenticatorSelectionCriteria implements Serializable {
38+
39+
@Serial
40+
private static final long serialVersionUID = -4273495550621636950L;
3541

3642
private final AuthenticatorAttachment authenticatorAttachment;
3743

web/src/main/java/org/springframework/security/web/webauthn/api/COSEAlgorithmIdentifier.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,9 @@
1616

1717
package org.springframework.security.web.webauthn.api;
1818

19+
import java.io.Serial;
20+
import java.io.Serializable;
21+
1922
/**
2023
* <a href=
2124
* "https://www.w3.org/TR/webauthn-3/#sctn-alg-identifier">COSEAlgorithmIdentifier</a> is
@@ -25,7 +28,10 @@
2528
* @since 6.4
2629
* @see PublicKeyCredentialParameters#getAlg()
2730
*/
28-
public final class COSEAlgorithmIdentifier {
31+
public final class COSEAlgorithmIdentifier implements Serializable {
32+
33+
@Serial
34+
private static final long serialVersionUID = 2916227211464921463L;
2935

3036
public static final COSEAlgorithmIdentifier EdDSA = new COSEAlgorithmIdentifier(-8);
3137

0 commit comments

Comments
 (0)