Example usage for org.springframework.vault.support SslConfiguration forTrustStore

List of usage examples for org.springframework.vault.support SslConfiguration forTrustStore

Introduction

In this page you can find the example usage for org.springframework.vault.support SslConfiguration forTrustStore.

Prototype

public static SslConfiguration forTrustStore(Resource trustStore, @Nullable char[] trustStorePassword) 

Source Link

Document

Create a new SslConfiguration for the given trust store with the default KeyStore type.

Usage

From source file:example.helloworld.VaultTestConfiguration.java

@Override
public SslConfiguration sslConfiguration() {

    return SslConfiguration.forTrustStore(new FileSystemResource(new File(findWorkDir(), "keystore.jks")),
            "changeit");
}