SecretOwnerTask also passes a provider of AuthenticatedCipher

This commit is contained in:
ameba23
2021-06-16 08:34:40 +02:00
parent 85683a57f1
commit ca54566ce0

View File

@@ -21,6 +21,7 @@ import java.security.GeneralSecurityException;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.inject.Provider;
import static java.util.logging.Logger.getLogger;
@@ -38,9 +39,9 @@ public class SecretOwnerTaskImpl extends ReturnShardTaskImpl
getLogger(SecretOwnerTaskImpl.class.getName());
@Inject
SecretOwnerTaskImpl(AuthenticatedCipher cipher, CryptoComponent crypto,
SecretOwnerTaskImpl(Provider<AuthenticatedCipher> cipherProvider, CryptoComponent crypto,
ClientHelper clientHelper) {
super(cipher, crypto);
super(cipherProvider, crypto);
this.clientHelper = clientHelper;
}