You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/JwtEncodingContext.java
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/OAuth2TokenContext.java
+109Lines changed: 109 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,85 +30,188 @@
30
30
importorg.springframework.util.Assert;
31
31
32
32
/**
33
+
* A context that holds information associated to an OAuth 2.0 Token
34
+
* and is used by an {@link OAuth2TokenCustomizer} for customizing the token attributes.
35
+
*
33
36
* @author Joe Grandja
34
37
* @since 0.1.0
35
38
* @see Context
39
+
* @see OAuth2TokenCustomizer
36
40
*/
37
41
publicinterfaceOAuth2TokenContextextendsContext {
38
42
43
+
/**
44
+
* Returns the {@link RegisteredClient registered client}.
45
+
*
46
+
* @return the {@link RegisteredClient}
47
+
*/
39
48
defaultRegisteredClientgetRegisteredClient() {
40
49
returnget(RegisteredClient.class);
41
50
}
42
51
52
+
/**
53
+
* Returns the {@link Authentication} representing the {@code Principal} resource owner (or client).
54
+
*
55
+
* @param <T> the type of the {@code Authentication}
56
+
* @return the {@link Authentication} representing the {@code Principal} resource owner (or client)
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/OAuth2TokenCustomizer.java
0 commit comments