class SecretManagementService {

    public void storeSecrets(final String deviceIdentification, final List<TypedSecret> secrets) {
        //@formatter:off
        secrets.stream()
                .map(t -> this.validateSecret(deviceIdentification, t))
                .map(s -> this.createEncrypted(deviceIdentification, s, this.getKey()))
                .forEach(this.secretRepository::save);
        //@formatter:on
    }

    public  SecretManagementService(
            @Qualifier("DefaultEncryptionDelegate") final EncryptionDelegate defaultEncryptionDelegate,
            final EncryptionProviderType encryptionProviderType, final DbEncryptedSecretRepository secretRepository,
            final DbEncryptionKeyRepository keyRepository);

}