Class PasswordExpiryChecker
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.security.PasswordExpiryChecker
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsChecker
public class PasswordExpiryChecker extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsChecker
Checks whether a user's password has changed within the configured expiry time.
-
-
Constructor Summary
Constructors Constructor Description PasswordExpiryChecker(UserRepository userRepository, int passwordExpiryInDays)
Build aPasswordExpiryChecker
with a givenUserRepository
and configured password expiry date
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(org.springframework.security.core.userdetails.UserDetails toCheck)
Checks if the givenUserDetails
password has expired.
-
-
-
Constructor Detail
-
PasswordExpiryChecker
public PasswordExpiryChecker(UserRepository userRepository, int passwordExpiryInDays)
Build aPasswordExpiryChecker
with a givenUserRepository
and configured password expiry date- Parameters:
userRepository
- aUserRepository
passwordExpiryInDays
- number of days until a password expires
-
-