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 newAppRoleAuthenticationOptionsinstance.Configure the mount path.Configure the RoleId.Configure asecretId.unwrappingEndpoints(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpointsto use. 
- 
Method Details
- 
path
Configure the mount path.- Parameters:
 path- must not be empty or null.- Returns:
 thisAppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder.- See Also:
 
 - 
roleId
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder roleId(AppRoleAuthenticationOptions.RoleId roleId) Configure the RoleId.- Parameters:
 roleId- must not be empty or null.- Returns:
 thisAppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder.- Since:
 - 2.0
 
 - 
secretId
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder secretId(AppRoleAuthenticationOptions.SecretId secretId) Configure asecretId.- Parameters:
 secretId- must not be empty or null.- Returns:
 thisAppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder.- Since:
 - 2.0
 
 - 
appRole
Configure aappRole.- Parameters:
 appRole- must not be empty or null.- Returns:
 thisAppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder.- Since:
 - 1.1
 
 - 
unwrappingEndpoints
public AppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder unwrappingEndpoints(UnwrappingEndpoints endpoints) Configure theUnwrappingEndpointsto use.- Parameters:
 endpoints- must not be null.- Returns:
 thisAppRoleAuthenticationOptions.AppRoleAuthenticationOptionsBuilder- Since:
 - 2.2
 
 - 
build
Build a newAppRoleAuthenticationOptionsinstance. RequiresroleId(RoleId)for push mode orappRole(String)andSecretId.pull(VaultToken)for pull mode to be configured.- Returns:
 - a new 
AppRoleAuthenticationOptions. 
 
 -