Example usage for org.springframework.vault.support VaultMount create

List of usage examples for org.springframework.vault.support VaultMount create

Introduction

In this page you can find the example usage for org.springframework.vault.support VaultMount create.

Prototype

public static VaultMount create(String type) 

Source Link

Document

Create a new VaultMount given a type .

Usage

From source file:org.springframework.vault.core.VaultTemplateTransitIntegrationTests.java

@Before
public void before() throws Exception {

    VaultSysOperations adminOperations = vaultOperations.opsForSys();

    if (!adminOperations.getMounts().containsKey("transit/")) {
        adminOperations.mount("transit", VaultMount.create("transit"));

        vaultOperations.write("transit/keys/mykey", null);
        vaultOperations.write("transit/keys/derived", Collections.singletonMap("derived", true));
    }// w w w .  j a  v a 2  s  . c o m
}