Line | |
---|
1 | package org.expeditee.encryption.items.surrogates;
|
---|
2 |
|
---|
3 | public enum EncryptionDetail {
|
---|
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;
|
---|
18 |
|
---|
19 | private String undecipheredValue = null;
|
---|
20 |
|
---|
21 | public EncryptionDetail setUndecipheredValue(String undecipheredValue) {
|
---|
22 | this.undecipheredValue = undecipheredValue;
|
---|
23 | return this;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public String getUndecipheredValue() {
|
---|
27 | return this.undecipheredValue;
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.