@Service(value="blJWTRefreshAuthenticationProvider")
@ConditionalOnProperty(value="blc.auth.jwt.enabled")
public class JWTRefreshAuthenticationProvider
extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
JWTAuthenticationToken authentication.
This is generally only run when using the JWTRefreshTokenFilter
to verify the validity of the refresh token before generating a new access token for the user.| Modifier and Type | Field and Description |
|---|---|
protected JWTTokenService |
jwtTokenService |
protected org.springframework.security.core.userdetails.UserDetailsService |
userDetailsService |
| Constructor and Description |
|---|
JWTRefreshAuthenticationProvider(JWTTokenService jwtTokenService,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
protected org.springframework.security.core.Authentication |
createSuccessAuthentication(Object principal,
org.springframework.security.core.Authentication authentication,
org.springframework.security.core.userdetails.UserDetails user) |
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
boolean |
supports(Class<?> authentication) |
afterPropertiesSet, authenticate, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCacheprotected final JWTTokenService jwtTokenService
protected final org.springframework.security.core.userdetails.UserDetailsService userDetailsService
@Autowired public JWTRefreshAuthenticationProvider(JWTTokenService jwtTokenService, org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProvidersupports in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderprotected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
throws org.springframework.security.core.AuthenticationException
additionalAuthenticationChecks in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected org.springframework.security.core.Authentication createSuccessAuthentication(Object principal, org.springframework.security.core.Authentication authentication, org.springframework.security.core.userdetails.UserDetails user)
createSuccessAuthentication in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderprotected org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
retrieveUser in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionCopyright © 2017. All rights reserved.