- Timestamp:
- 12/03/19 16:31:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/mail/Mail.java
r1478 r1479 108 108 if (Boolean.getBoolean("expeditee.demo-mode")) { 109 109 databaseFileDirPath = ensureDeadDropsDemoMode(colleagueName); 110 databaseFilePath = ensureDatabaseFile(colleagueName, databaseFileDirPath); 111 try { 112 publicKey = AuthenticatorBrowser.getInstance().getPublicKey(colleagueName); 113 } catch (InvalidKeySpecException | NoSuchAlgorithmException | KeyStoreException | CertificateException 114 | ClassNotFoundException | IOException | SQLException e) { 115 System.err.println("Error while sending message. Unable to obtain public key for colleague " + 116 colleagueName + ". Exception message: " + e.getMessage()); 117 return; 118 } 119 if (publicKey == null) { 120 System.err.println("(Demo mode) Error while sending message. Unable to obtain public key for colleague. Have you exchanged contact details?"); 121 return; 122 } 123 110 databaseFilePath = ensureDatabaseFile(colleagueName, databaseFileDirPath); 124 111 sendMail(mail, publicKey, databaseFilePath); 125 112 }
Note:
See TracChangeset
for help on using the changeset viewer.