Skip to content

Commit

Permalink
Fix code example for field level encryption.
Browse files Browse the repository at this point in the history
Closes #1613.
  • Loading branch information
mikereiche committed May 9, 2023
1 parent bd7f8a1 commit e634e3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/asciidoc/fieldlevelencryption.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected CryptoManager cryptoManager() {

CryptoManager cryptoManager = DefaultCryptoManager.builder().decrypter(provider.decrypter())
.defaultEncrypter(provider.encrypterForKey("myKey")).build();
return cryptoManager;
}
```

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

0 comments on commit e634e3a

Please sign in to comment.