Support Serialization in Exceptions
Issue gh-16276
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.oauth2.core;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.AuthenticationException;
|
||||
import org.springframework.util.Assert;
|
||||
@@ -41,6 +43,9 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class OAuth2AuthenticationException extends AuthenticationException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -7832130893085581438L;
|
||||
|
||||
private final OAuth2Error error;
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.oauth2.core;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -26,6 +28,9 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class OAuth2AuthorizationException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -5470222190376181102L;
|
||||
|
||||
private final OAuth2Error error;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user