Class HerodotusOpaqueTokenCustomizer

java.lang.Object
cn.herodotus.engine.oauth2.authentication.customizer.AbstractTokenCustomizer
cn.herodotus.engine.oauth2.authentication.customizer.HerodotusOpaqueTokenCustomizer
All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>

public class HerodotusOpaqueTokenCustomizer extends AbstractTokenCustomizer implements org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>

Description: Opaque Token Customizer

An OAuth2TokenCustomizer provides the ability to customize the attributes of an OAuth2Token, which are accessible in the provided OAuth2TokenContext. It is used by an OAuth2TokenGenerator to let it customize the attributes of the OAuth2Token before it is generated.

Author:
: gengwei.zheng
Date:
: 2022/10/9 20:43
  • Constructor Details

    • HerodotusOpaqueTokenCustomizer

      public HerodotusOpaqueTokenCustomizer()
  • Method Details

    • customize

      public void customize(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext context)
      Specified by:
      customize in interface org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>