Skip to content

Commit d15a685

Browse files
committed
Polish OAuth2Authorization
1 parent 53ed5b8 commit d15a685

File tree

1 file changed

+5
-3
lines changed
  • oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization

1 file changed

+5
-3
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/OAuth2Authorization.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,17 @@ public static Builder from(OAuth2Authorization authorization) {
238238
*/
239239
public static class Token<T extends OAuth2Token> implements Serializable {
240240
private static final long serialVersionUID = Version.SERIAL_VERSION_UID;
241-
protected static final String TOKEN_METADATA_BASE = "metadata.token.";
241+
protected static final String TOKEN_METADATA_NAMESPACE = "metadata.token.";
242242

243243
/**
244244
* The name of the metadata that indicates if the token has been invalidated.
245245
*/
246-
public static final String INVALIDATED_METADATA_NAME = TOKEN_METADATA_BASE.concat("invalidated");
246+
public static final String INVALIDATED_METADATA_NAME = TOKEN_METADATA_NAMESPACE.concat("invalidated");
247247

248248
/**
249249
* The name of the metadata used for the claims of the token.
250250
*/
251-
public static final String CLAIMS_METADATA_NAME = TOKEN_METADATA_BASE.concat("claims");
251+
public static final String CLAIMS_METADATA_NAME = TOKEN_METADATA_NAMESPACE.concat("claims");
252252

253253
private final T token;
254254
private final Map<String, Object> metadata;
@@ -525,5 +525,7 @@ public OAuth2Authorization build() {
525525
authorization.attributes = Collections.unmodifiableMap(this.attributes);
526526
return authorization;
527527
}
528+
528529
}
530+
529531
}

0 commit comments

Comments
 (0)