@Service public class DefaultOIDCTokenService extends Object implements OIDCTokenService
Constructor and Description |
---|
DefaultOIDCTokenService() |
public DefaultOIDCTokenService()
public com.nimbusds.jwt.JWT createIdToken(ClientDetailsEntity client, org.springframework.security.oauth2.provider.OAuth2Request request, Date issueTime, String sub, OAuth2AccessTokenEntity accessToken)
createIdToken
in interface OIDCTokenService
public OAuth2AccessTokenEntity createRegistrationAccessToken(ClientDetailsEntity client)
createRegistrationAccessToken
in interface OIDCTokenService
client
- org.springframework.security.core.AuthenticationException
public OAuth2AccessTokenEntity createResourceAccessToken(ClientDetailsEntity client)
createResourceAccessToken
in interface OIDCTokenService
client
- public OAuth2AccessTokenEntity rotateRegistrationAccessTokenForClient(ClientDetailsEntity client)
rotateRegistrationAccessTokenForClient
in interface OIDCTokenService
public ConfigurationPropertiesBean getConfigBean()
public void setConfigBean(ConfigurationPropertiesBean configBean)
configBean
- the configBean to setpublic JWTSigningAndValidationService getJwtService()
public void setJwtService(JWTSigningAndValidationService jwtService)
jwtService
- the jwtService to setpublic AuthenticationHolderRepository getAuthenticationHolderRepository()
public void setAuthenticationHolderRepository(AuthenticationHolderRepository authenticationHolderRepository)
authenticationHolderRepository
- the authenticationHolderRepository to setprotected void addCustomIdTokenClaims(com.nimbusds.jwt.JWTClaimsSet.Builder idClaims, ClientDetailsEntity client, org.springframework.security.oauth2.provider.OAuth2Request request, String sub, OAuth2AccessTokenEntity accessToken)
idClaims
- the builder holding the current claimsclient
- information about the requesting clientrequest
- request that caused the id token to be createdsub
- subject auf the id tokenaccessToken
- the access tokenauthentication
- current authenticationCopyright © 2022. All rights reserved.