@Service public class ConnectTokenEnhancer extends Object implements org.springframework.security.oauth2.provider.token.TokenEnhancer
Constructor and Description |
---|
ConnectTokenEnhancer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomAccessTokenClaims(com.nimbusds.jwt.JWTClaimsSet.Builder builder,
OAuth2AccessTokenEntity token,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
Hook for subclasses that allows adding custom claims to the JWT that will be used as access token.
|
org.springframework.security.oauth2.common.OAuth2AccessToken |
enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
ClientDetailsEntityService |
getClientService() |
ConfigurationPropertiesBean |
getConfigBean() |
JWTSigningAndValidationService |
getJwtService() |
void |
setClientService(ClientDetailsEntityService clientService) |
void |
setConfigBean(ConfigurationPropertiesBean configBean) |
void |
setJwtService(JWTSigningAndValidationService jwtService) |
public ConnectTokenEnhancer()
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
enhance
in interface org.springframework.security.oauth2.provider.token.TokenEnhancer
public ConfigurationPropertiesBean getConfigBean()
public void setConfigBean(ConfigurationPropertiesBean configBean)
public JWTSigningAndValidationService getJwtService()
public void setJwtService(JWTSigningAndValidationService jwtService)
public ClientDetailsEntityService getClientService()
public void setClientService(ClientDetailsEntityService clientService)
protected void addCustomAccessTokenClaims(com.nimbusds.jwt.JWTClaimsSet.Builder builder, OAuth2AccessTokenEntity token, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
builder
- the builder holding the current claimstoken
- the un-enhanced tokenauthentication
- current authenticationCopyright © 2018. All rights reserved.