checkUserValidity
public static void checkUserValidity(org.springframework.security.core.userdetails.UserDetails user)
throws org.springframework.security.authentication.AccountExpiredException,
org.springframework.security.authentication.CredentialsExpiredException,
org.springframework.security.authentication.DisabledException,
org.springframework.security.authentication.LockedException
Checks the validity of a user's account and credentials.
- Parameters:
user
- the user to check
- Throws:
org.springframework.security.authentication.AccountExpiredException
- if the account has expired
org.springframework.security.authentication.CredentialsExpiredException
- if the credentials have expired
org.springframework.security.authentication.DisabledException
- if the account is disabled
org.springframework.security.authentication.LockedException
- if the account is locked