From e634e3a93c28399bb4121037d509dcb3a020a721 Mon Sep 17 00:00:00 2001 From: mikereiche Date: Tue, 9 May 2023 14:09:35 -0700 Subject: [PATCH] Fix code example for field level encryption. Closes #1613. --- src/main/asciidoc/fieldlevelencryption.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/asciidoc/fieldlevelencryption.adoc b/src/main/asciidoc/fieldlevelencryption.adoc index 7554180ab..b39704fb3 100644 --- a/src/main/asciidoc/fieldlevelencryption.adoc +++ b/src/main/asciidoc/fieldlevelencryption.adoc @@ -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; } }