Ensure Serialization Compatibility for AuthenticationException

Issue gh-16286
This commit is contained in:
Josh Cummings 2025-02-03 12:34:43 -07:00
parent e31f04bebc
commit 47fd6befde
No known key found for this signature in database
GPG Key ID: 869B37A20E876129

View File

@ -16,6 +16,8 @@
package org.springframework.security.core;
import java.io.Serial;
/**
* Abstract superclass for all exceptions related to an {@link Authentication} object
* being invalid for whatever reason.
@ -24,6 +26,9 @@ package org.springframework.security.core;
*/
public abstract class AuthenticationException extends RuntimeException {
@Serial
private static final long serialVersionUID = 2018827803361503060L;
/**
* Constructs an {@code AuthenticationException} with the specified message and root
* cause.