Ignore:
Timestamp:
07/24/19 13:23:34 (5 years ago)
Author:
bln4
Message:

Fixed font size of surrogate effecting primary.
Added comment to further document how EncryptionDetail.Type.InheritanceCheckOnSave works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/encryption/io/EncryptedExpWriter.java

    r1415 r1416  
    203203                boolean userHasKey = Label.getLabel(toWrite.getEncryptionLabel()) == LabelResult.SuccessResolveLabelToKey;
    204204               
     205                // If we have no surrogates that inherit this property from us, and we have the label required to encrypt it, then we should entry it.
    205206                if (!surrogatesInherit && userHasKey) {
    206207                        EncryptionDetail reencryptOnSave = new EncryptionDetail(EncryptionDetail.Type.ReencryptOnSave);
     
    208209                        writeTagReencryptOnSave(toWrite, tags, tag);
    209210                } else {
     211                        // If one or more surrogates still inherit from us, or we do not have the label, then we write it out unencrypted.
    210212                        EncryptionDetail unencryptedOnSave = new EncryptionDetail(EncryptionDetail.Type.UnencryptedOnSave);
    211213                        toWrite.setEncryptionDetailForTag(tag + "", unencryptedOnSave);
Note: See TracChangeset for help on using the changeset viewer.