From 1d32fffc1d35dabacb13af2a8c0c8cf58e30f972 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Wed, 10 Jan 2018 10:40:54 -0500 Subject: [PATCH] Make OAuth2Error Serializable Fixes gh-4944 --- .../springframework/security/oauth2/core/OAuth2Error.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2Error.java b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2Error.java index 3ed11a6307..e5596cb977 100644 --- a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2Error.java +++ b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2Error.java @@ -15,8 +15,11 @@ */ package org.springframework.security.oauth2.core; +import org.springframework.security.core.SpringSecurityCoreVersion; import org.springframework.util.Assert; +import java.io.Serializable; + /** * A representation of an OAuth 2.0 Error. * @@ -30,7 +33,8 @@ import org.springframework.util.Assert; * @since 5.0 * @see Section 11.4 OAuth Extensions Error Registry */ -public final class OAuth2Error { +public final class OAuth2Error implements Serializable { + private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID; private final String errorCode; private final String description; private final String uri;