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/encryption/io/EncryptedExpWriter.java

    r1431 r1506  
    5252        public EncryptedExpWriter(String encryptionLabel) {
    5353                label = encryptionLabel;
    54                 if (label.equals(labelNone)) {
     54                if (label.equals(getLabelNone())) {
    5555                        return;
    5656                }
     
    122122               
    123123                String toWrite;
    124                 if (key == null && label.equals(labelNone)) {
     124                if (key == null && label.equals(getLabelNone())) {
    125125                        toWrite = line + nl;
    126126                } else {
     
    276276                }
    277277        }
     278
     279        /**
     280         * @return the labelnone
     281         */
     282        public static String getLabelNone() {
     283                return labelNone;
     284        }
    278285}
Note: See TracChangeset for help on using the changeset viewer.