Example usage for org.springframework.vault.core.lease.domain RequestedSecret getPath

List of usage examples for org.springframework.vault.core.lease.domain RequestedSecret getPath

Introduction

In this page you can find the example usage for org.springframework.vault.core.lease.domain RequestedSecret getPath.

Prototype

public String getPath() 

Source Link

Usage

From source file:org.springframework.vault.core.env.LeaseAwareVaultPropertySource.java

/**
 * Create a new {@link LeaseAwareVaultPropertySource} given a
 * {@link SecretLeaseContainer} and {@link RequestedSecret}. This property source
 * requests the secret upon initialization and receives secrets once they are emitted
 * through events published by {@link SecretLeaseContainer}.
 *
 * @param secretLeaseContainer must not be {@literal null}.
 * @param requestedSecret must not be {@literal null}.
 *//*  w ww .  j a  v  a  2 s . com*/
public LeaseAwareVaultPropertySource(SecretLeaseContainer secretLeaseContainer,
        RequestedSecret requestedSecret) {
    this(requestedSecret.getPath(), secretLeaseContainer, requestedSecret);
}