Ignore:
Timestamp:
11/28/18 16:16:29 (6 years ago)
Author:
bln4
Message:

org.expeditee.auth.gio.EncryptedExpReader ->
org.expeditee.auth.gio.EncryptedExpWriter ->
org.expeditee.io.DefaultFrameReader ->
org.expeditee.io.DefaultFrameWriter ->
org.expeditee.io.ExpReader ->
org.expeditee.io.ExpWriter ->

The beginnings of a authentication system for Expeditee. Frame files (.exp) can now be encrypted with a password. A login system is being developed to accompany this.


org.expeditee.gui.AttributeUtils ->
org.expeditee.gui.Frame ->
org.expeditee.gui.FrameUtils ->
org.expeditee.items.Item ->
org.expeditee.items.PermissionPair ->
org.expeditee.items.Text ->

As part of the development the login screen. Modifications to Text Items have been made. New properties are 'Mask' and 'MinWidth'. Mask allows you to set a character to use as...a mask...for example, a password field using '*'. MinWidth allows you to specify a minimum width for text boxes. A text box with a minimum width never shrinks below this width; even when it has no content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r1188 r1200  
    4040import org.expeditee.actions.Actions;
    4141import org.expeditee.agents.ExistingFramesetException;
     42import org.expeditee.auth.io.EncryptedExpReader;
     43import org.expeditee.auth.io.EncryptedExpWriter;
    4244import org.expeditee.io.Conversion;
    4345import org.expeditee.io.ExpReader;
     
    465467
    466468                        if (fullPath.endsWith(ExpReader.EXTENTION)) {
    467                                 reader = new ExpReader(frameName);
     469                                if (EncryptedExpReader.isEncryptedExpediteeFile(fullPath)) {
     470                                        reader = new EncryptedExpReader(frameName);
     471                                } else {
     472                                        reader = new ExpReader(frameName);
     473                                }
    468474                        } else {
    469475                                reader = new KMSReader();
     
    952958                /* Dont save the frame if it has the noSave tag */
    953959                if (toSave.hasAnnotation("nosave")) {
    954                         Actions.PerformActionCatchErrors(toSave, null, "Restore");
     960                        Actions.LegacyPerformActionCatchErrors(toSave, null, "Restore");
    955961                        return "";
    956962                }
     
    964970                /* Format the frame if it has the autoFormat tag */
    965971                if (toSave.hasAnnotation("autoformat")) {
    966                         Actions.PerformActionCatchErrors(toSave, null, "Format");
     972                        Actions.LegacyPerformActionCatchErrors(toSave, null, "Format");
    967973                }
    968974
     
    988994                        // if its a new frame or an existing Exp frame...
    989995                        if (fullPath == null || fullPath.endsWith(ExpReader.EXTENTION)) {
    990                                 writer = new ExpWriter();
     996                                //writer = new ExpWriter();
     997                                writer = new ExpWriter();//new EncryptedExpWriter();
    991998                                savedVersion = ExpReader.getVersion(fullPath);
    992999                        } else {
     
    11981205        public static Frame LoadProfile(String userName)
    11991206        {
    1200                 return LoadFrame(userName + "1");
     1207                final String profilesLoc = System.getProperty("profiles.loc");
     1208                if (profilesLoc != null) {
     1209                        return LoadFrame(userName + "1", profilesLoc);
     1210                } else {
     1211                        return LoadFrame(userName + "1");
     1212                }
    12011213        }
    12021214
Note: See TracChangeset for help on using the changeset viewer.