Skip to content

Commit 651cb78

Browse files
Rename metadata
1 parent 4389717 commit 651cb78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/uid2/admin/store/writer/EncryptedSaltStoreWriter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class EncryptedSaltStoreWriter extends SaltStoreWriter implements StoreWr
2828
private StoreScope scope;
2929
private RotatingCloudEncryptionKeyProvider cloudEncryptionKeyProvider;
3030
private Integer siteId;
31-
private JsonObject metadata;
31+
private JsonObject unencryptedSaltProviderMetadata;
3232

3333
private final List<RotatingSaltProvider.SaltSnapshot> previousSeenSnapshots = new ArrayList<>();
3434

@@ -114,12 +114,12 @@ protected JsonObject getMetadata() throws Exception {
114114
* use the encrypted site-specific path, which may not have all entries.
115115
* This logic allows `extraMeta` to be passed, containing all values of unencrypted metadata.
116116
* */
117-
return this.metadata;
117+
return this.unencryptedSaltProviderMetadata;
118118
}
119119

120120
@Override
121121
public void upload(Object data, JsonObject extraMeta) throws Exception {
122-
this.metadata = extraMeta;
122+
this.unencryptedSaltProviderMetadata = extraMeta;
123123
for(RotatingSaltProvider.SaltSnapshot saltSnapshot: (Collection<RotatingSaltProvider.SaltSnapshot>) data) {
124124
super.upload(saltSnapshot);
125125
}

0 commit comments

Comments
 (0)