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.initialToken
(VaultToken initialToken) Deprecated.Configure the mount path.Deprecated.since 2.0, useroleId(AppRoleAuthenticationOptions.RoleId)
.Configure the RoleId.Deprecated.since 2.0, usesecretId(AppRoleAuthenticationOptions.SecretId)
.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
-
roleId
@Deprecated public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder roleId(String roleId) Deprecated.since 2.0, useroleId(AppRoleAuthenticationOptions.RoleId)
.Configure the RoleId.- Parameters:
roleId
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.
-
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
-
secretId
@Deprecated public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder secretId(String secretId) Deprecated.since 2.0, usesecretId(AppRoleAuthenticationOptions.SecretId)
.Configure asecretId
.- Parameters:
secretId
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.
-
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
-
initialToken
@Deprecated public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder initialToken(VaultToken initialToken) Deprecated.since 2.0, useroleId(AppRoleAuthenticationOptions.RoleId)
/secretId(AppRoleAuthenticationOptions.SecretId)
to configure pull mode.Configure ainitialToken
.- Parameters:
initialToken
- must not be empty or null.- Returns:
this
AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder
.- Since:
- 1.1
-
build
Build a newAppRoleAuthenticationOptions
instance. RequiresroleId(String)
for push mode orappRole(String)
andinitialToken(VaultToken)
for pull mode to be configured.- Returns:
- a new
AppRoleAuthenticationOptions
.
-
roleId(AppRoleAuthenticationOptions.RoleId)
/secretId(AppRoleAuthenticationOptions.SecretId)
to configure pull mode.