Class AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
- Enclosing class:
- AppRoleAuthenticationOptions
Builder for
AppRoleAuthenticationOptions
.-
Method Summary
Modifier and TypeMethodDescriptionConfigure aappRole
.build()
Build a newAppRoleAuthenticationOptions
instance.Configure the mount path.Configure the RoleId.Configure asecretId
.unwrappingEndpoints
(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpoints
to use.
-
Method Details
-
path
Configure the mount path.- Parameters:
path
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.- See Also:
-
roleId
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder roleId(AppRoleAuthenticationOptions.RoleId roleId) Configure the RoleId.- Parameters:
roleId
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.- Since:
- 2.0
-
secretId
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder secretId(AppRoleAuthenticationOptions.SecretId secretId) Configure asecretId
.- Parameters:
secretId
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.- Since:
- 2.0
-
appRole
Configure aappRole
.- Parameters:
appRole
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.- Since:
- 1.1
-
unwrappingEndpoints
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder unwrappingEndpoints(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpoints
to use.- Parameters:
endpoints
- must not be null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
- Since:
- 2.2
-
build
Build a newAppRoleAuthenticationOptions
instance. RequiresroleId(RoleId)
for push mode orappRole(String)
andSecretId.pull(VaultToken)
for pull mode to be configured.- Returns:
- a new
AppRoleAuthenticationOptions
.
-