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 Details

    • HVL_TOKEN

      public static final String HVL_TOKEN
      The constant HVL_TOKEN.
      See Also:
    • TOKEN

      public static final String TOKEN
      The constant TOKEN.
      See Also:
    • OPEN_ID_TOKEN

      public static final org.springframework.security.oauth2.server.authorization.OAuth2TokenType OPEN_ID_TOKEN
      The constant OPEN_ID_TOKEN.
  • Constructor Details

    • HvlJwtTokenEnhancer

      public HvlJwtTokenEnhancer(HvlSessionDataProvider sessionDataProvider, HvlAuthOidcAuthorityMatchChecker authOidcAuthorityMatchChecker)
      Instantiates a new HvlJwtTokenEnhancer.
      Parameters:
      sessionDataProvider - the session data provider
      authOidcAuthorityMatchChecker - 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 interface org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>