Skip to content

Commit 3a808a2

Browse files
Added more work
1 parent 7fe538c commit 3a808a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/java/com/uid2/shared/store/RotatingEncryptedSaltProvider.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
import com.uid2.shared.model.CloudEncryptionKey;
66
import com.uid2.shared.store.reader.RotatingCloudEncryptionKeyProvider;
77

8+
import com.uid2.shared.store.reader.StoreReader;
89
import io.vertx.core.json.JsonObject;
910
import java.io.IOException;
1011
import java.io.InputStream;
1112
import java.nio.charset.StandardCharsets;
1213
import java.util.Base64;
14+
import java.util.Collection;
1315

14-
public class RotatingEncryptedSaltProvider extends RotatingSaltProvider{
16+
public class RotatingEncryptedSaltProvider extends RotatingSaltProvider implements StoreReader<Collection<RotatingSaltProvider.SaltSnapshot>> {
1517
private final RotatingCloudEncryptionKeyProvider cloudEncryptionKeyProvider;
1618

1719
public RotatingEncryptedSaltProvider(DownloadCloudStorage fileStreamProvider, String metadataPath, RotatingCloudEncryptionKeyProvider cloudEncryptionKeyProvider) {
@@ -38,4 +40,9 @@ protected String readInputStream(InputStream inputStream) throws IOException {
3840

3941
return new String(decryptedBytes, StandardCharsets.UTF_8);
4042
}
43+
44+
@Override
45+
public Collection<SaltSnapshot> getAll() {
46+
return super.getSnapshots();
47+
}
4148
}

0 commit comments

Comments
 (0)