-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cbc UI d2 4571 cloud encryption cleanup #355
Cbc UI d2 4571 cloud encryption cleanup #355
Conversation
src/main/java/com/uid2/shared/store/RotatingEncryptedSaltProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/com/uid2/shared/store/RotatingEncryptedSaltProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/com/uid2/shared/store/reader/RotatingCloudEncryptionKeyProvider.java
Outdated
Show resolved
Hide resolved
import java.util.Collection; | ||
|
||
public class RotatingEncryptedSaltProvider extends RotatingSaltProvider implements StoreReader<Collection<RotatingSaltProvider.SaltSnapshot>> { | ||
private final RotatingCloudEncryptionKeyProvider cloudEncryptionKeyProvider; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no tests for this class - are you still adding them?
@@ -33,6 +33,11 @@ public RotatingCloudEncryptionKeyProvider(DownloadCloudStorage fileStreamProvide | |||
this.reader = new ScopedStoreReader<>(fileStreamProvider, scope, new CloudEncryptionKeyParser(), "cloud_encryption_keys"); | |||
} | |||
|
|||
|
|||
public RotatingCloudEncryptionKeyProvider(DownloadCloudStorage fileStreamProvider, StoreScope scope, ScopedStoreReader<Map<Integer, CloudEncryptionKey>> reader) { | |||
this.reader = reader; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do we use this version of the constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In tests, I did this as instead of making reader public.
No description provided.