Question: Complete the code for the method findStrongPasswords() that receives a Map and a Set as its arguments. Complete the code for the method findStrongPasswords ()
Complete the code for the method findStrongPasswords() that receives a Map and a Set as its arguments.


Complete the code for the method findStrongPasswords () that receives a Map and a Set as its arguments. You can assume that both the set and the Map will always contain at least one entry. The Map contains string type user IDs as keys with each having an associated string value that is an encrypted password. The set contains the encrypted versions of common weak passwords The method should return a SortedMap of key-value pairs representing users whose password does not appear in the set of weakPas swords * This method takes a Map containing users and their encrypted passwords. It also takes a Set containing the encrypted version of known weak passwords * It examines every user's password and returns a SortedMap containing those users with strong passwords as a key value pair of user encryptedPassword that is those users whose passwords do not appear in the list of weak passords * The returned SorteddMap may be empty if no user has a strong password public SortedMap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
