Make OAuth2Error Serializable

Fixes gh-4944
This commit is contained in:
Joe Grandja 2018-01-10 10:40:54 -05:00
parent 4d310b7bf3
commit 1d32fffc1d
1 changed files with 5 additions and 1 deletions

View File

@ -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 <i>OAuth 2.0 Error</i>.
*
@ -30,7 +33,8 @@ import org.springframework.util.Assert;
* @since 5.0
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc6749#section-11.4">Section 11.4 OAuth Extensions Error Registry</a>
*/
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;