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 newAzureMsiAuthenticationOptions
instance.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:
this
AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
.
-
role
Configure the name of the role against which the login is being attempted.- Parameters:
role
- must not be empty or null.- Returns:
this
AzureMsiAuthenticationOptions.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,AzureMsiAuthentication
looks up the details from the instance metadata service.- Parameters:
vmEnvironment
- must not be null.- Returns:
this
AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
.
-
instanceMetadataUri
public AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder instanceMetadataUri(URI instanceMetadataServiceUri) Configure the instance metadataURI
.- Parameters:
instanceMetadataServiceUri
- must not be null.- Returns:
this
AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
.- See Also:
-
identityTokenServiceUri
public AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder identityTokenServiceUri(URI identityTokenServiceUri) Configure the managed identity service tokenURI
.- Parameters:
identityTokenServiceUri
- must not be null.- Returns:
this
AzureMsiAuthenticationOptions.AzureMsiAuthenticationOptionsBuilder
.- See Also:
-
build
Build a newAzureMsiAuthenticationOptions
instance.- Returns:
- a new
AzureMsiAuthenticationOptions
.
-