Changeset 1357 for trunk/src/org/expeditee/auth/account/Password.java
- Timestamp:
- 05/07/19 14:08:23 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/account/Password.java
r1348 r1357 24 24 import org.expeditee.gui.FrameIO; 25 25 import org.expeditee.gui.MessageBay; 26 import org.ngikm.cryptography.CryptographyConstants; 26 27 27 public class Password {28 public class Password implements CryptographyConstants { 28 29 /* 29 30 * Changes the recorded password for a user in the key store. … … 91 92 } 92 93 93 public static void confirmIntergalacticNumberAndGenerateSubstituteAccount(Map<AuthenticationTag, String> userData) { 94 String username = userData.get(AuthenticationTag.Username); 95 String email = userData.get(AuthenticationTag.Email); 96 String intergalacticNumber = userData.get(AuthenticationTag.IntergalacticNumber); 97 String newPassword = userData.get(AuthenticationTag.NewPassword); 98 String newPasswordAgain = userData.get(AuthenticationTag.NewPasswordAgain); 99 100 try { 101 boolean match = AuthenticatorBrowser.getInstance().confirmIntergalaticNumber(username, email, intergalacticNumber); 102 if (match) { 103 MessageBay.displayMessage(":)"); 104 } else { 105 MessageBay.displayMessage(":("); 106 } 107 } catch (NoSuchAlgorithmException | KeyStoreException | CertificateException | ClassNotFoundException 108 | IOException | SQLException e) { 109 e.printStackTrace(); 110 } 94 public static void confirmIntergalacticNumberAndAlertColleagues(Map<AuthenticationTag, String> userData, String[] colleagues) { 95 System.err.println("Colleague One: " + colleagues[0] + " @" + colleagues[2]); 96 System.err.println("Colleague Two: " + colleagues[1] + " @" + colleagues[3]); 111 97 } 112 98 }
Note:
See TracChangeset
for help on using the changeset viewer.