Ignore:
Timestamp:
01/31/19 16:34:06 (5 years ago)
Author:
bln4
Message:

org.expeditee.auth.EncryptedExpReader ->
org.expeditee.auth.EncryptedExpWriter ->
Actions ->
AttributeUtils ->
Frame ->
FrameIO ->
UserSettings ->

Changed how reading and writing encrypted files worked. A Frame attribute is now consulted to determine what to use as key for encryption. The 'profile' attribute setting is used to signal that the users personal aes key is used. Further enhancement will mean that other labels will be able to be used.


Actions ->

MailMode action now consults the database to reaquire the mail.

File:
1 edited

Legend:

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

    r1202 r1227  
    4242        /**
    4343         * Display Expeditee Mail
    44          */
    45         public static void MailMode() {
     44         * @throws IOException
     45         * @throws SQLException
     46         * @throws ClassNotFoundException
     47         * @throws CertificateException
     48         * @throws NoSuchAlgorithmException
     49         * @throws FileNotFoundException
     50         * @throws KeyStoreException
     51         */
     52        public static void MailMode() throws KeyStoreException, FileNotFoundException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException, IOException {
     53                if (!DisplayController.isMailMode()) {
     54                        Mail.clear();
     55                        Authenticator.getInstance().loadMailDatabase();
     56                }
    4657                DisplayController.ToggleMailMode();
    4758        }
     
    375386                                Frame frame = FrameIO.LoadFrame(profile.getFramesetName() + i);
    376387                                frame.setOwner(username);
     388                                frame.setEncryptionLabel("Profile");
    377389                                Collection<Item> items = frame.getAllItems();
    378390                                for (Item item: items) {
Note: See TracChangeset for help on using the changeset viewer.