List of usage examples for org.springframework.vault.core.util PropertyTransformers noop
public static PropertyTransformer noop()
From source file:org.springframework.vault.core.env.LeaseAwareVaultPropertySource.java
/** * Create a new {@link LeaseAwareVaultPropertySource} given a {@code name}, * {@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 name name of the property source, must not be {@literal null}. * @param secretLeaseContainer must not be {@literal null}. * @param requestedSecret must not be {@literal null}. *///w w w.j a va 2 s .c om public LeaseAwareVaultPropertySource(String name, SecretLeaseContainer secretLeaseContainer, RequestedSecret requestedSecret) { this(name, secretLeaseContainer, requestedSecret, PropertyTransformers.noop()); }
From source file:org.springframework.vault.core.env.VaultPropertySource.java
/** * Create a new {@link VaultPropertySource} given a {@code name}, * {@link VaultTemplate} and {@code path} inside of Vault. This property source loads * properties upon construction.// w w w. j a va 2 s . c o m * * @param name name of the property source, must not be {@literal null}. * @param vaultOperations must not be {@literal null}. * @param path the path inside Vault (e.g. {@code secret/myapp/myproperties}. Must not * be empty or {@literal null}. */ public VaultPropertySource(String name, VaultOperations vaultOperations, String path) { this(name, vaultOperations, path, PropertyTransformers.noop()); }