Browse Source

Ensure Serialization Compatibility for AuthenticationException

Issue gh-16286
pull/16534/head
Josh Cummings 11 months ago
parent
commit
47fd6befde
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
  1. 5
      core/src/main/java/org/springframework/security/core/AuthenticationException.java

5
core/src/main/java/org/springframework/security/core/AuthenticationException.java

@ -16,6 +16,8 @@ @@ -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; @@ -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.

Loading…
Cancel
Save