question: private void validateLocalUserExpiration ( UsernamePasswordCredentials credentials ) { if ( ! _passwordUtils . isLocalUser ( credentials . getUserName ( ) ) ) { return ; } PasswordValidator validator = ValidatorFactory . buildExpireValidator ( _passwordUtils . getConfigProperties ( ) ) ; Password password = new Password ( credentials . getUserName ( ) , credentials . getPassword ( ) , null ) ; password . setPasswordHistory ( _passwordUtils . getPasswordHistory ( credentials . getUserName ( ) ) ) ; validator . validate ( password ) ; }
target:  validate if local user's password expired