From 90f9d728cdcfcb9027d42bdd16422bc2fdbb83ee Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Wed, 21 Mar 2018 09:44:05 -0400 Subject: [PATCH] Allow extension for OAuth2Error Fixes gh-5148 --- .../springframework/security/oauth2/core/OAuth2Error.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 6ee96125e2..cafe330a00 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 @@ -34,7 +34,7 @@ import java.io.Serializable; * @see OAuth2ErrorCodes * @see Section 11.4 OAuth Extensions Error Registry */ -public final class OAuth2Error implements Serializable { +public class OAuth2Error implements Serializable { private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID; private final String errorCode; private final String description; @@ -68,7 +68,7 @@ public final class OAuth2Error implements Serializable { * * @return the error code */ - public String getErrorCode() { + public final String getErrorCode() { return this.errorCode; } @@ -77,7 +77,7 @@ public final class OAuth2Error implements Serializable { * * @return the error description */ - public String getDescription() { + public final String getDescription() { return this.description; } @@ -86,7 +86,7 @@ public final class OAuth2Error implements Serializable { * * @return the error uri */ - public String getUri() { + public final String getUri() { return this.uri; }