Ignore:
Timestamp:
05/24/19 14:51:06 (5 years ago)
Author:
bln4
Message:

Implemented EncryptionPermission attribute.

EncryptionPermission is a triple. When specifying the value, if you do not specify the 2nd (group) or 3rd (other) then they default to permission level zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/DefaultFrameReader.java

    r1369 r1374  
    3333import org.expeditee.core.Font;
    3434import org.expeditee.core.Point;
     35import org.expeditee.encryption.items.EncryptionPermissionTriple;
    3536import org.expeditee.gui.Frame;
    3637import org.expeditee.items.Constraint;
     
    7071        protected static Class[] pPermission = { PermissionPair.class };
    7172        protected static Class[] pDotType = { DotType.class };
     73        protected static Class[] pEncPermission = { EncryptionPermissionTriple.class };
    7274       
    7375        public DefaultFrameReader(){
     
    9395                        _FrameTags.put('K', Frame.class.getMethod("setEncryptionLabel", pString));
    9496                        _FrameTags.put('T', Frame.class.getMethod("addToData", pString));
     97                        _FrameTags.put('E', Frame.class.getMethod("setEncryptionPermission", pEncPermission));
    9598
    9699                        // Note: As of 26/11/18 there are no unused letter item tags.  Use other characters.
Note: See TracChangeset for help on using the changeset viewer.