Example usage for org.springframework.vault.authentication TokenAuthentication TokenAuthentication

List of usage examples for org.springframework.vault.authentication TokenAuthentication TokenAuthentication

Introduction

In this page you can find the example usage for org.springframework.vault.authentication TokenAuthentication TokenAuthentication.

Prototype

public TokenAuthentication(VaultToken token) 

Source Link

Document

Create a new TokenAuthentication with a static token .

Usage

From source file:de.dominikschadow.configclient.VaultConfig.java

@Override
public ClientAuthentication clientAuthentication() {
    return new TokenAuthentication("test");
}

From source file:example.helloworld.VaultTestConfiguration.java

@Override
public ClientAuthentication clientAuthentication() {
    return new TokenAuthentication("00000000-0000-0000-0000-000000000000");
}