Interface WingsUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

    
    public interface WingsUserDetailsService
     implements UserDetailsService
                        

    UserDetailsService with AuthType support, And try `saveUserByDetail` if `load*` throws UsernameNotFoundException

    Since:

    2021-02-05

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      UserDetails loadUserByUsername(String username) invoke loadUserByUsername(null, username) by default
      abstract UserDetails loadUserByUsername(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail) load UserDetails by username and authType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • loadUserByUsername

        @NotNull() UserDetails loadUserByUsername(String username)

        invoke loadUserByUsername(null, username) by default

      • loadUserByUsername

        @NotNull() abstract UserDetails loadUserByUsername(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)

        load UserDetails by username and authType

        Parameters:
        username - Unique Key under authType.
        authType - auth type, Null.
        authDetail - Authentication.
        Returns:

        UserDetails