Support Serialization in Exceptions
Issue gh-16276
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.oauth2.client;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import org.springframework.security.oauth2.core.OAuth2AuthorizationException;
|
||||
import org.springframework.security.oauth2.core.OAuth2Error;
|
||||
import org.springframework.util.Assert;
|
||||
@@ -30,6 +32,9 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class ClientAuthorizationException extends OAuth2AuthorizationException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 4710713969265443271L;
|
||||
|
||||
private final String clientRegistrationId;
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.oauth2.client;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import org.springframework.security.oauth2.core.OAuth2Error;
|
||||
|
||||
/**
|
||||
@@ -28,6 +30,9 @@ import org.springframework.security.oauth2.core.OAuth2Error;
|
||||
*/
|
||||
public class ClientAuthorizationRequiredException extends ClientAuthorizationException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -5738646355203953667L;
|
||||
|
||||
private static final String CLIENT_AUTHORIZATION_REQUIRED_ERROR_CODE = "client_authorization_required";
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,6 +20,7 @@ package org.springframework.security.oauth2.client.web;
|
||||
* @author Steve Riesenberg
|
||||
* @since 5.8
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
class InvalidClientRegistrationIdException extends IllegalArgumentException {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user