mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-08 21:22:18 +00:00
Ensure Serialization Compatibility for AuthenticationException
Issue gh-16286
This commit is contained in:
parent
e31f04bebc
commit
47fd6befde
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package org.springframework.security.core;
|
package org.springframework.security.core;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract superclass for all exceptions related to an {@link Authentication} object
|
* Abstract superclass for all exceptions related to an {@link Authentication} object
|
||||||
* being invalid for whatever reason.
|
* being invalid for whatever reason.
|
||||||
@ -24,6 +26,9 @@ package org.springframework.security.core;
|
|||||||
*/
|
*/
|
||||||
public abstract class AuthenticationException extends RuntimeException {
|
public abstract class AuthenticationException extends RuntimeException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 2018827803361503060L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an {@code AuthenticationException} with the specified message and root
|
* Constructs an {@code AuthenticationException} with the specified message and root
|
||||||
* cause.
|
* cause.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user