mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Allow extension for OAuth2Error
Fixes gh-5148
This commit is contained in:
parent
e4255c9793
commit
90f9d728cd
@ -34,7 +34,7 @@ import java.io.Serializable;
|
|||||||
* @see OAuth2ErrorCodes
|
* @see OAuth2ErrorCodes
|
||||||
* @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 implements Serializable {
|
public class OAuth2Error implements Serializable {
|
||||||
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
|
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;
|
||||||
@ -68,7 +68,7 @@ public final class OAuth2Error implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return the error code
|
* @return the error code
|
||||||
*/
|
*/
|
||||||
public String getErrorCode() {
|
public final String getErrorCode() {
|
||||||
return this.errorCode;
|
return this.errorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public final class OAuth2Error implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return the error description
|
* @return the error description
|
||||||
*/
|
*/
|
||||||
public String getDescription() {
|
public final String getDescription() {
|
||||||
return this.description;
|
return this.description;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ public final class OAuth2Error implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return the error uri
|
* @return the error uri
|
||||||
*/
|
*/
|
||||||
public String getUri() {
|
public final String getUri() {
|
||||||
return this.uri;
|
return this.uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user