Class EnduranceTrioAuthProvider

java.lang.Object
com.endurancetrio.app.common.security.provider.EnduranceTrioAuthProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

@Component public class EnduranceTrioAuthProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Custom AuthenticationProvider to handle Key based authentication.
  • Constructor Details

    • EnduranceTrioAuthProvider

      @Autowired public EnduranceTrioAuthProvider(TrackerAccountService trackerAccountService)
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(@NonNull org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(@NonNull Class<?> authentication)
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider