Polishing.
Add OkHttp3 to reference documentation. Add java hint to code fences. See gh-45.
This commit is contained in:
@@ -23,6 +23,7 @@ OS access levels.
|
||||
|
||||
.Externalizing `vault.token` to a properties file
|
||||
====
|
||||
[source, java]
|
||||
----
|
||||
@PropertySource("configuration.properties"),
|
||||
@Configuration
|
||||
@@ -98,8 +99,9 @@ class AppConfig extends AbstractVaultConfiguration {
|
||||
|
||||
@Override
|
||||
public ClientAuthentication clientAuthentication() {
|
||||
AppIdAuthenticationOptions options = AppIdAuthenticationOptions.builder().appId("myapp") //
|
||||
.userIdMechanism(new IpAddressUserId()) //
|
||||
AppIdAuthenticationOptions options = AppIdAuthenticationOptions.builder()
|
||||
.appId("myapp")
|
||||
.userIdMechanism(new IpAddressUserId())
|
||||
.build();
|
||||
|
||||
return new AppIdAuthentication(options, vaultClient());
|
||||
@@ -136,8 +138,9 @@ class AppConfig extends AbstractVaultConfiguration {
|
||||
@Override
|
||||
public ClientAuthentication clientAuthentication() {
|
||||
|
||||
AppIdAuthenticationOptions options = AppIdAuthenticationOptions.builder().appId("myapp") //
|
||||
.userIdMechanism(new MacAddressUserId()) //
|
||||
AppIdAuthenticationOptions options = AppIdAuthenticationOptions.builder()
|
||||
.appId("myapp")
|
||||
.userIdMechanism(new MacAddressUserId())
|
||||
.build();
|
||||
|
||||
return new AppIdAuthentication(options, vaultClient());
|
||||
|
||||
@@ -12,6 +12,7 @@ Spring Vault supports following HTTP clients:
|
||||
* Apache Http Components
|
||||
* Netty
|
||||
* OkHttp 2
|
||||
* OkHttp 3
|
||||
|
||||
Using a specific client requires the according dependency to be available on the classpath
|
||||
so Spring Vault can use the available client for communicating with Vault.
|
||||
@@ -64,3 +65,14 @@ dependencies to your project. You can omit the version number if using
|
||||
</dependency>
|
||||
----
|
||||
====
|
||||
|
||||
.Square OkHttp 3
|
||||
====
|
||||
[source, xml]
|
||||
----
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
</dependency>
|
||||
----
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user