Fix code example for field level encryption. (#1733)

Closes #1613.
This commit is contained in:
Michael Reiche
2023-05-09 14:10:46 -07:00
committed by GitHub
parent bd7f8a1a17
commit 6194b070cb

View File

@@ -43,6 +43,7 @@ protected CryptoManager cryptoManager() {
CryptoManager cryptoManager = DefaultCryptoManager.builder().decrypter(provider.decrypter())
.defaultEncrypter(provider.encrypterForKey("myKey")).build();
return cryptoManager;
}
```
@@ -82,6 +83,7 @@ static class Config extends AbstractCouchbaseConfiguration {
CryptoManager cryptoManager = DefaultCryptoManager.builder().decrypter(provider.decrypter())
.defaultEncrypter(provider.encrypterForKey("myKey")).build();
return cryptoManager;
}
}