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/DefaultFrameWriter.java

    r1418 r1505  
    178178        {
    179179                try {
     180                        ///     C         H I J   L   N   P Q R S       W X Y Z
     181                        /// a b c     f g h i j   l m n o   q r s t u v w x y z
     182                        // Standard frame tags
    180183                        _FrameTags.put('V', Frame.class.getMethod("getVersion"));
    181184                        _FrameTags.put('p', Frame.class.getMethod("getPermission"));
     
    187190                        _FrameTags.put('O', Frame.class.getMethod("getForegroundColor"));
    188191                        _FrameTags.put('B', Frame.class.getMethod("getBackgroundColor"));
    189                         _FrameTags.put('K', Frame.class.getMethod("getEncryptionLabel"));
    190192                        _FrameTags.put('T', Frame.class.getMethod("getData"));
    191                         _FrameTags.put('E', Frame.class.getMethod("getEncryptionPermission"));
    192193                        _FrameTags.put('G', Frame.class.getMethod("getGroup"));
     194                       
     195                        // Encryption frame tags
     196                        _FrameTags.put('K', Frame.class.getMethod("getFrameEncryptionLabel"));
     197                        _FrameTags.put('E', Frame.class.getMethod("getFrameEncryptionPermission"));
     198                        _FrameTags.put('k', Frame.class.getMethod("getHomogeneousEncryptionLabel"));
     199                        _FrameTags.put('e', Frame.class.getMethod("getEncryptionPermission"));
    193200                       
    194201                        // 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.