Class HybrisGroupBasedAuthenticationProvider
java.lang.Object
de.hybris.platform.servicelayer.security.spring.HybrisGroupBasedAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Deprecated(since="ages",
forRemoval=true)
public class HybrisGroupBasedAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Deprecated, for removal: This API element is subject to removal in a future version.
since ages - see PLA-10801 -- validates 'best practice pattern' of seperating 'authentication' from 'authorization'
and isn't flexible enough.
Spring security Authentication provider using the
AuthenticationService to perform authentication. Uses a
UserToAuthenticationConverter to convert a hybris UserModel to an Authentication object.
Restricts authentication to users belonging to a specific user group. For example, the Spring MVC store utilizes this
authentication provider to restrict authentication to only users belonging to the customer group.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) Deprecated, for removal: This API element is subject to removal in a future version.voidsetAuthenticationService(AuthenticationService authenticationService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetAuthorizedGroups(Set<String> authorizedGroups) Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserToAuthenticationConverter(UserToAuthenticationConverter userToAuthenticationConverter) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
HybrisGroupBasedAuthenticationProvider
public HybrisGroupBasedAuthenticationProvider()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
setAuthenticationService
Deprecated, for removal: This API element is subject to removal in a future version. -
setUserToAuthenticationConverter
public void setUserToAuthenticationConverter(UserToAuthenticationConverter userToAuthenticationConverter) Deprecated, for removal: This API element is subject to removal in a future version. -
setAuthorizedGroups
Deprecated, for removal: This API element is subject to removal in a future version.
-