|
@@ -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;
|
|
|
+
|
|
|
/**
|
|
|
* An authorization grant is a credential representing the resource owner's authorization
|
|
|
* (to access it's protected resources) to the client and used by the client to obtain an access token.
|
|
@@ -30,7 +33,8 @@ import org.springframework.util.Assert;
|
|
|
* @since 5.0
|
|
|
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc6749#section-1.3">Section 1.3 Authorization Grant</a>
|
|
|
*/
|
|
|
-public final class AuthorizationGrantType {
|
|
|
+public final class AuthorizationGrantType implements Serializable {
|
|
|
+ private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
|
|
|
public static final AuthorizationGrantType AUTHORIZATION_CODE = new AuthorizationGrantType("authorization_code");
|
|
|
public static final AuthorizationGrantType IMPLICIT = new AuthorizationGrantType("implicit");
|
|
|
private final String value;
|