Interface AppRoleAuthenticationOptions.RoleId
- Enclosing class:
- AppRoleAuthenticationOptions
public static interface AppRoleAuthenticationOptions.RoleId
RoleId type encapsulating how the roleId is actually obtained. Provides factory
methods to obtain a
AppRoleAuthenticationOptions.RoleId
by wrapping, pull-mode or whether to use a
string literal.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionCreate aAppRoleAuthenticationOptions.RoleId
that encapsulates a staticroleId
.pull
(VaultToken initialToken) Create aAppRoleAuthenticationOptions.RoleId
that obtains its value using pull-mode, specifying ainitial token
.wrapped
(VaultToken initialToken) Create aAppRoleAuthenticationOptions.RoleId
object that obtains its value from unwrapping a response using theinitial token
from a Cubbyhole.
-
Method Details
-
wrapped
Create aAppRoleAuthenticationOptions.RoleId
object that obtains its value from unwrapping a response using theinitial token
from a Cubbyhole.- Parameters:
initialToken
- must not be null.- Returns:
AppRoleAuthenticationOptions.RoleId
object that obtains its value from unwrapping a response using theinitial token
.- See Also:
-
pull
Create aAppRoleAuthenticationOptions.RoleId
that obtains its value using pull-mode, specifying ainitial token
. The token policy must allow reading the roleId fromauth/approle/role/(role-name)/role-id
.- Parameters:
initialToken
- must not be null.- Returns:
AppRoleAuthenticationOptions.RoleId
that obtains its value using pull-mode.
-
provided
Create aAppRoleAuthenticationOptions.RoleId
that encapsulates a staticroleId
.- Parameters:
roleId
- must not be null or empty.- Returns:
AppRoleAuthenticationOptions.RoleId
that encapsulates a staticroleId
.
-