Package io.meeds.oauth2.server.service
Class OAuthAccessTokenCustomizerService
java.lang.Object
io.meeds.oauth2.server.service.OAuthAccessTokenCustomizerService
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>
@Service
public class OAuthAccessTokenCustomizerService
extends Object
implements org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(OAuthAccessTokenAudienceProvider audienceProvider) voidaddProvider(OAuthAccessTokenAuthorityProvider authorityProvider) voidcustomize(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext context) voidcustomize(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext context) voidinit()
-
Constructor Details
-
OAuthAccessTokenCustomizerService
public OAuthAccessTokenCustomizerService()
-
-
Method Details
-
init
@PostConstruct public void init() -
addProvider
-
addProvider
-
customize
public void customize(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext context) - Specified by:
customizein interfaceorg.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>
-
customize
public void customize(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext context)
-