From 82c79ef1358d869d9c2fa2e94077239c372506d1 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Tue, 8 Apr 2025 19:29:57 +0700 Subject: [PATCH 1/2] Polish javadoc Signed-off-by: Tran Ngoc Nhan --- .../resource/introspection/OpaqueTokenIntrospector.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java index 056a7766b2f..0679c9cfbf2 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ package org.springframework.security.oauth2.server.resource.introspection; -import java.util.Map; - import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal; /** @@ -40,7 +38,7 @@ public interface OpaqueTokenIntrospector { /** * Introspect and verify the given token, returning its attributes. * - * Returning a {@link Map} is indicative that the token is valid. + * Returning a {@link OAuth2AuthenticatedPrincipal} is indicative that the token is valid. * @param token the token to introspect * @return the token's attributes */ From e75b9231a3f37822b307c6a9a347413e3df3d2a3 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 9 Apr 2025 01:12:43 +0700 Subject: [PATCH 2/2] Format OpaqueTokenIntrospector Signed-off-by: Tran Ngoc Nhan --- .../server/resource/introspection/OpaqueTokenIntrospector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java index 0679c9cfbf2..a670554b691 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/OpaqueTokenIntrospector.java @@ -38,7 +38,8 @@ public interface OpaqueTokenIntrospector { /** * Introspect and verify the given token, returning its attributes. * - * Returning a {@link OAuth2AuthenticatedPrincipal} is indicative that the token is valid. + * Returning a {@link OAuth2AuthenticatedPrincipal} is indicative that the token is + * valid. * @param token the token to introspect * @return the token's attributes */