Interface JwtAccessTokenEnhancer
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
AbstractUserAccessTokenEnhancer
,AccountIdAccessTokenEnhancer
,AuthoritiesAccessTokenEnhancer
,ClientPermissionsAccessTokenEnhancer
,ClientRestrictionAccessTokenEnhancer
,CustomerContextAccessTokenEnhancer
,CustomerSegmentsAccessTokenEnhancer
,ImpersonationAccessTokenEnhancer
,RandomTokenEnhancer
,RegisteredClaimsAccessTokenEnhancer
,TenantPropertiesAccessTokenEnhancer
,UserAccessTokenEnhancer
,UserRestrictionAccessTokenEnhancer
public interface JwtAccessTokenEnhancer
extends org.springframework.core.Ordered
Indicates classes that can participate in JWT Token customization for access tokens.
To be clear, this is not intended for customizing
OAuth2TokenFormat.REFERENCE
-format access tokens such as those generated by
OAuth2AccessTokenGenerator
.
- Author:
- Cade Rea (cade-rea)
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enhance
(JwtTokenEnhancerContext context) Evaluate the authentication and add claims as necessary.default int
getOrder()
-
Method Details
-
enhance
Evaluate the authentication and add claims as necessary. AJwtTokenEnhancerContext
contains User and client authentication tokens, authorization tokens, and access token claims.- Parameters:
context
- TheJwtTokenEnhancerContext
to evaluate.
-
getOrder
default int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-