Class HvlJwtTokenEnhancer
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.starter.oidc.enhancer.HvlJwtTokenEnhancer
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>
@Component
public class HvlJwtTokenEnhancer
extends Object
implements org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>
Token enhancer is used to add/remove data from/to token.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHvlJwtTokenEnhancer
(HvlSessionDataProvider sessionDataProvider, HvlAuthOidcAuthorityMatchChecker authOidcAuthorityMatchChecker) Instantiates a new HvlJwtTokenEnhancer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext context)
-
Field Details
-
HVL_TOKEN
The constant HVL_TOKEN.- See Also:
-
TOKEN
The constant TOKEN.- See Also:
-
OPEN_ID_TOKEN
public static final org.springframework.security.oauth2.server.authorization.OAuth2TokenType OPEN_ID_TOKENThe constant OPEN_ID_TOKEN.
-
-
Constructor Details
-
HvlJwtTokenEnhancer
public HvlJwtTokenEnhancer(HvlSessionDataProvider sessionDataProvider, HvlAuthOidcAuthorityMatchChecker authOidcAuthorityMatchChecker) Instantiates a new HvlJwtTokenEnhancer.- Parameters:
sessionDataProvider
- the session data providerauthOidcAuthorityMatchChecker
- the auth oidc authority match checker
-
-
Method Details
-
customize
public void customize(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext context) - Specified by:
customize
in interfaceorg.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>
-