Class HybrisGroupBasedAuthenticationProvider
- java.lang.Object
-
- de.hybris.platform.servicelayer.security.spring.HybrisGroupBasedAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Deprecated public class HybrisGroupBasedAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.AuthenticationProviderDeprecated.since ages - see PLA-10801 -- validates 'best practice pattern' of seperating 'authentication' from 'authorization' and isn't flexible enough.Spring security Authentication provider using theAuthenticationServiceto perform authentication. Uses aUserToAuthenticationConverterto convert a hybrisUserModelto anAuthenticationobject. 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
Constructors Constructor Description HybrisGroupBasedAuthenticationProvider()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)Deprecated.voidsetAuthenticationService(AuthenticationService authenticationService)Deprecated.voidsetAuthorizedGroups(java.util.Set<java.lang.String> authorizedGroups)Deprecated.voidsetUserToAuthenticationConverter(UserToAuthenticationConverter userToAuthenticationConverter)Deprecated.booleansupports(java.lang.Class authentication)Deprecated.
-
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationExceptionDeprecated.- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class authentication)
Deprecated.- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
Deprecated.
-
setUserToAuthenticationConverter
public void setUserToAuthenticationConverter(UserToAuthenticationConverter userToAuthenticationConverter)
Deprecated.
-
setAuthorizedGroups
public void setAuthorizedGroups(java.util.Set<java.lang.String> authorizedGroups)
Deprecated.
-
-