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

    r1415 r1505  
    8383
    8484                try {
     85                        ///     C         H I J   L   N   P Q R S       W X Y Z
     86                        /// a b c     f g h i j   l m n o   q r s t u v w x y z
     87                        // Standard frame tags
    8588                        _FrameTags.put('A', Frame.class.getMethod("setName", pString));
    8689                        _FrameTags.put('V', Frame.class.getMethod("setVersion", pInt));
     
    9396                        _FrameTags.put('O', Frame.class.getMethod("setForegroundColor", pColor));
    9497                        _FrameTags.put('B', Frame.class.getMethod("setBackgroundColor", pColor));
    95                         _FrameTags.put('K', Frame.class.getMethod("setEncryptionLabel", pString));
    9698                        _FrameTags.put('T', Frame.class.getMethod("addToData", pString));
    97                         _FrameTags.put('E', Frame.class.getMethod("setEncryptionPermission", pEncPermission));
    9899                        _FrameTags.put('G', Frame.class.getMethod("setGroup", pString));
     100                       
     101                        // Encryption frame tags
     102                        _FrameTags.put('K', Frame.class.getMethod("setFrameEncryptionLabel", pString));
     103                        _FrameTags.put('E', Frame.class.getMethod("setFrameEncryptionPermission", pEncPermission));
     104                        _FrameTags.put('k', Frame.class.getMethod("setHomogeneousEncryptionLabel", pString));
     105                        _FrameTags.put('e', Frame.class.getMethod("setEncryptionPermission", pEncPermission));
    99106
    100107                        // 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.