Ignore:
Timestamp:
01/30/20 13:03:50 (4 years ago)
Author:
bnemhaus
Message:

New Attributes (and repurposed old ones) to be used for encryption of frames:

  • FrameEncryptionLabel. Used to be EncryptionLabel, which is still the case for items. When applied to a frame, it determines the label used to encrypt the entire frame.
  • HomogeneousEncryptionLabel. Does not yet actually do anything. The future point of this attribute is to provide the label that must be used to encrypt items on the frame when the user has only homogeneous encryption permissions.
  • EncryptionFramePermission. Does not yet actually do anything. The future point of this attribute isto determine if a user is able to change the FrameEncryptionLabel on a frame. Level 0 (none), no they cannot. Level 1 (homogeneous), they can only change it to HomogeneousEncryptionLabel. Level 2 (Hetrogeneous Owner), they can change it to any label as long as the owner of the Frame has that label. Level 3 (Hetrogeneous), they can change it to anything.
  • EncryptionPermission. Does not yet actually do anything. The future point of this attribute is to determine what encryption labels can be applied to items on the frame. Level 0 (none), cannot apply an encryption label. Level 1 (homogeneous), they can only used the label specified in HomogeneousEncryptionLabel. Level 2 (Hetrogeneous Owner), they can only use encryption labels that the owner of the frame has. Level 3 (Hetrogeneous) they can use any labels to encrypt an item.
File:
1 edited

Legend:

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

    r1477 r1505  
    185185                         */
    186186                       
    187                         // Frames
     187                        // Standard Frame attributes
    188188                        _FrameAttrib.put("Permission",      Frame.class.getMethod("getPermission"),
    189189                                                            Frame.class.getMethod("setPermission", pPermission));
     
    200200                        _FrameAttrib.put("BackgroundColor", Frame.class.getMethod("getBackgroundColor"),
    201201                                                            Frame.class.getMethod("setBackgroundColor", pColor));
    202                         _FrameAttrib.put("EncryptionLabel", Frame.class.getMethod("getEncryptionLabel"),
    203                                                                                                 Frame.class.getMethod("setEncryptionLabel", pString));
    204                         _FrameAttrib.put("EncPermission",       Frame.class.getMethod("getEncryptionPermission"),
    205                                                                                                 Frame.class.getMethod("setEncryptionPermission", pEncPermission));
    206202                        _FrameAttrib.put("Group",                       Frame.class.getMethod("getGroup"),
    207203                                                                                                Frame.class.getMethod("setGroup", pString));
    208204                       
    209                        
    210                         // aliases for attribute setting
     205                        // Encryption Frame attributes
     206                        _FrameAttrib.put("FrameEncryptionLabel",                Frame.class.getMethod("getFrameEncryptionLabel"),
     207                                                                                                                        Frame.class.getMethod("setFrameEncryptionLabel", pString));
     208                        _FrameAttrib.put("EncryptionFramePermission",   Frame.class.getMethod("getFrameEncryptionPermission"),
     209                                                                                                                        Frame.class.getMethod("setFrameEncryptionPermission", pEncPermission));
     210                        _FrameAttrib.put("HomogeneousEncryptionLabel",  Frame.class.getMethod("getHomogeneousEncryptionLabel"),
     211                                                                                                                        Frame.class.getMethod("setHomogeneousEncryptionLabel", pString));
     212                        _FrameAttrib.put("EncryptionPermission",                Frame.class.getMethod("getEncryptionPermission"),
     213                                                                                                                        Frame.class.getMethod("setEncryptionPermission", pEncPermission));
     214                       
     215                        // aliases for Standard frame attribute settings
    211216                        _FrameAttrib.alias("fgc",       "foregroundcolor");
    212217                        _FrameAttrib.alias("bgc",       "backgroundcolor");
    213218                        _FrameAttrib.alias("p",         "permission");
    214                         _FrameAttrib.alias("enc",               "encryptionlabel");
    215                         _FrameAttrib.alias("encp",              "encpermission");
    216                         _FrameAttrib.alias("EncryptionPermission", "encpermission");
    217                        
     219                       
     220                        // aliases for Encryption frame attribute settings
     221                        _FrameAttrib.alias("encframelabel",     "FrameEncryptionLabel");
     222                        _FrameAttrib.alias("encframeperm",      "EncryptionFramePermission");
     223                        _FrameAttrib.alias("homoenclabel",      "HomogeneousEncryptionLabel");
     224                        _FrameAttrib.alias("encperm",           "EncryptionPermission");
    218225                       
    219226                        // Generic Items
Note: See TracChangeset for help on using the changeset viewer.