Class SocialUser

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User

        org.springframework.security.core.userdetails.User.UserBuilder
    • Constructor Summary

      Constructors 
      Constructor Description
      SocialUser​(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)  
      SocialUser​(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getUserId()
      The user's identity at the provider.
      • Methods inherited from class org.springframework.security.core.userdetails.User

        builder, equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername
      • Methods inherited from interface org.springframework.security.core.userdetails.UserDetails

        getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
    • Constructor Detail

      • SocialUser

        public SocialUser​(String username,
                          String password,
                          boolean enabled,
                          boolean accountNonExpired,
                          boolean credentialsNonExpired,
                          boolean accountNonLocked,
                          Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      • SocialUser

        public SocialUser​(String username,
                          String password,
                          Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    • Method Detail

      • getUserId

        public String getUserId()
        Description copied from interface: SocialUserDetails
        The user's identity at the provider. Might be same as UserDetails.getUsername() if users are identified by username
        Specified by:
        getUserId in interface SocialUserDetails
        Returns:
        user's id used to assign connections