Ignore:
Timestamp:
06/25/19 13:57:37 (5 years ago)
Author:
bln4
Message:

Changed surrogates to work the way discussed with David. EncryptedExpReader/Writer updated to work with this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/encryption/items/surrogates/EncryptionDetail.java

    r1408 r1413  
    22
    33public enum EncryptionDetail {
    4         UnencryptedOnSave, ReencryptOnSave, UseUndecipheredValueOnSave;
     4        // If the property needs to be unencrypted due to inheritance then do not try to encrypt it.
     5        UnencryptedOnSave,
     6       
     7        // If the property is not inherited by any surrogates then we can try to encrypt it. 
     8        // If we do not have key then default to UnencryptedOnSave.
     9        ReencryptOnSave,
     10       
     11        // If the property is no longer inherited by at least one surrogate then this value is present. 
     12        // If it turns out there is no longer any surrogates who inherit the value then this value can be replaced with ReencryptOnSave.
     13        // Otherwise, this value must be replaced with UnencryptedOnSave.
     14        InheritanceCheckOnSave,
     15       
     16        // If we could not decrypt the value on load then EncryptionDetail.getUndecipheredValue() can be used to get the value for saving.
     17        UseUndecipheredValueOnSave;
    518       
    619        private String undecipheredValue = null;
Note: See TracChangeset for help on using the changeset viewer.