Ignore:
Timestamp:
05/07/19 14:08:23 (5 years ago)
Author:
bln4
Message:

Fixes to permission on items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/account/Password.java

    r1348 r1357  
    2424import org.expeditee.gui.FrameIO;
    2525import org.expeditee.gui.MessageBay;
     26import org.ngikm.cryptography.CryptographyConstants;
    2627
    27 public class Password {
     28public class Password implements CryptographyConstants {
    2829        /*
    2930         * Changes the recorded password for a user in the key store.
     
    9192        }
    9293       
    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]);
    11197        }
    11298}
Note: See TracChangeset for help on using the changeset viewer.