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 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:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class authentication)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider
    • setAuthenticationService

      public void setAuthenticationService(AuthenticationService authenticationService)
      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

      public void setAuthorizedGroups(Set<String> authorizedGroups)
      Deprecated, for removal: This API element is subject to removal in a future version.