protected void transformPassword ( final UsernamePasswordCredential userPass ) throws FailedLoginException , AccountNotFoundException { if ( StringUtils . isBlank ( userPass . getPassword ( ) ) ) { throw new FailedLoginException ( "Password is null." ) ; } LOGGER . debug ( "Attempting to encode credential password via [{}] for [{}]" , this . passwordEncoder . getClass ( ) . getName ( ) , userPass . getUsername ( ) ) ; val transformedPsw = this . passwordEncoder . encode ( userPass . getPassword ( ) ) ; if ( StringUtils . isBlank ( transformedPsw ) ) { throw new AccountNotFoundException ( "Encoded password is null." ) ; } userPass . setPassword ( transformedPsw ) ; }
Transform password .