mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 00:32:14 +00:00
Make OAuth2Error Serializable
Fixes gh-4944
This commit is contained in:
parent
4d310b7bf3
commit
1d32fffc1d
@ -15,8 +15,11 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.security.oauth2.core;
|
package org.springframework.security.oauth2.core;
|
||||||
|
|
||||||
|
import org.springframework.security.core.SpringSecurityCoreVersion;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A representation of an <i>OAuth 2.0 Error</i>.
|
* A representation of an <i>OAuth 2.0 Error</i>.
|
||||||
*
|
*
|
||||||
@ -30,7 +33,8 @@ import org.springframework.util.Assert;
|
|||||||
* @since 5.0
|
* @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>
|
* @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 errorCode;
|
||||||
private final String description;
|
private final String description;
|
||||||
private final String uri;
|
private final String uri;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user