Ignore:
Timestamp:
01/31/20 13:49:48 (4 years ago)
Author:
bnemhaus
Message:

Permissions for encrypting frames are now respected. (Group level permissions still need testing and maybe implementation)

The current implementation of Hetrogeneous Owner requires that the owner of the frame specify the available labels. Injecting the property "HetrogeneousEncryptionLabels: <label name>" into the frame name item adds the specified label to the list of labels that those with 'Hetrogeneous (Owner)' permission are able to use.

File:
1 edited

Legend:

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

    r1505 r1506  
    204204                       
    205205                        // 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));
     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                        _FrameAttrib.put("HetrogeneousEncryptionLabels",        Frame.class.getMethod("getHetrogeneousFrameOwnerLabels"),
     215                                                                                                                                Frame.class.getMethod("addToHetrogeneousFrameOwnerLabels", pString));
    214216                       
    215217                        // aliases for Standard frame attribute settings
     
    220222                        // aliases for Encryption frame attribute settings
    221223                        _FrameAttrib.alias("encframelabel",     "FrameEncryptionLabel");
     224                        _FrameAttrib.alias("EncryptionFrameLabel", "FrameEncryptionLabel");
    222225                        _FrameAttrib.alias("encframeperm",      "EncryptionFramePermission");
    223226                        _FrameAttrib.alias("homoenclabel",      "HomogeneousEncryptionLabel");
Note: See TracChangeset for help on using the changeset viewer.