Spring Security - UserDetails

UserDetails explained in several fields:

// return to verify the user's password, then can not return NULL

String getPassword();

String getUsername();

// account has expired, expired can not be verified

boolean isAccountNonExpired();

// Specify whether the user is locked or unlocked, locked users can not authenticate

boolean isAccountNonLocked();

// indicate whether the user's credentials have expired (password), expired credentials to prevent certification

boolean isCredentialsNonExpired();

// if disabled, disabled users can not authenticate
boolean isEnabled ();
Published 10 original articles · won praise 14 · views 40000 +

Guess you like

Origin blog.csdn.net/cuierdan/article/details/80585290