Example usage for Java org.springframework.security.core.userdetails User fields, constructors, methods, implement or subclass
The text is from its open source code.
User(String username, String password, Collection extends GrantedAuthority> authorities) Calls the more complex constructor with all boolean arguments set to true . | |
User | |
User(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection extends GrantedAuthority> authorities) Construct the User with the details required by org.springframework.security.authentication.dao.DaoAuthenticationProvider . |
boolean | equals(Object rhs) Returns true if the supplied object is a User instance with the same username value. |
Collection | getAuthorities() |
String | getPassword() |
String | getUsername() |
boolean | isAccountNonExpired() |
boolean | isAccountNonLocked() |
boolean | isCredentialsNonExpired() |
boolean | isEnabled() |
UserBuilder | withUsername(String username) Creates a UserBuilder with a specified user name |