Class CustomJWTAuthHandler
- java.lang.Object
-
- org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
-
- io.mosip.kernel.auth.defaultadapter.handler.CustomJWTAuthHandler
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.MessageSourceAware,org.springframework.security.authentication.AuthenticationProvider
@Component("customJWTAuthProvider") public class CustomJWTAuthHandler extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
-
-
Constructor Summary
Constructors Constructor Description CustomJWTAuthHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadditionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken)protected org.springframework.security.core.userdetails.UserDetailsretrieveUser(String userName, org.springframework.security.authentication.UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken)-
Methods inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
-
-
-
-
Method Detail
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken) throws org.springframework.security.core.AuthenticationException- Specified by:
additionalAuthenticationChecksin classorg.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
retrieveUser
protected org.springframework.security.core.userdetails.UserDetails retrieveUser(String userName, org.springframework.security.authentication.UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken) throws org.springframework.security.core.AuthenticationException
- Specified by:
retrieveUserin classorg.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
-