Class AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
- Enclosing class:
- AzureMsiAuthenticationOptions
public static class AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
extends Object
Builder for
AzureMsiAuthenticationOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newAzureMsiAuthenticationOptionsinstance.identityTokenServiceUri(URI identityTokenServiceUri) Configure the managed identity service tokenURI.instanceMetadataUri(URI instanceMetadataServiceUri) Configure the instance metadataURI.Configure the mount path, defaults to azure.Configure the name of the role against which the login is being attempted.vmEnvironment(AzureVmEnvironment vmEnvironment) Configure a VM environment (subscriptionId, resource group name, VM name).
-
Method Details
-
path
Configure the mount path, defaults to azure.- Parameters:
path- must not be empty or null.- Returns:
thisAzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder.
-
role
Configure the name of the role against which the login is being attempted.- Parameters:
role- must not be empty or null.- Returns:
thisAzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder.
-
vmEnvironment
public AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder vmEnvironment(AzureVmEnvironment vmEnvironment) Configure a VM environment (subscriptionId, resource group name, VM name). Environment details are passed to Vault as login body. If left unconfigured,AzureMsiAuthenticationlooks up the details from the instance metadata service.- Parameters:
vmEnvironment- must not be null.- Returns:
thisAzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder.
-
instanceMetadataUri
public AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder instanceMetadataUri(URI instanceMetadataServiceUri) Configure the instance metadataURI.- Parameters:
instanceMetadataServiceUri- must not be null.- Returns:
thisAzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder.- See Also:
-
identityTokenServiceUri
public AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder identityTokenServiceUri(URI identityTokenServiceUri) Configure the managed identity service tokenURI.- Parameters:
identityTokenServiceUri- must not be null.- Returns:
thisAzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder.- See Also:
-
build
Build a newAzureMsiAuthenticationOptionsinstance.- Returns:
- a new
AzureMsiAuthenticationOptions.
-