public class InstoreAuthenticationProvider extends CoreAuthenticationProvider
CoreAuthenticationProvider - this provider checks if
the given authentication correspond to a valid employee defined in the system.CoreAuthenticationProvider.CoreAuthenticationExceptionmessages| Constructor and Description |
|---|
InstoreAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Authentication authentication) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setUserService(UserService userService) |
additionalAuthenticationChecks, afterPropertiesSet, createSuccessAuthentication, getPreAuthenticationChecks, getUserDetailsService, retrieveUser, setMessageSource, setPreAuthenticationChecks, setUserDetailsService, supportspublic Authentication authenticate(Authentication authentication)
throws AuthenticationException
authenticate in class CoreAuthenticationProviderClassMismatchException - - if the user found is not an EmployeeModel.UsernameNotFoundException - - if no user was found for the given authentication data.AuthenticationExceptionpublic void setUserService(UserService userService)
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Copyright © 2018 SAP SE. All Rights Reserved.