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
Static MethodsModifier and TypeMethodDescriptionCreate aAppRoleAuthenticationOptions.RoleIdthat encapsulates a staticroleId.pull(VaultToken initialToken) Create aAppRoleAuthenticationOptions.RoleIdthat obtains its value using pull-mode, specifying ainitial token.wrapped(VaultToken initialToken) Create aAppRoleAuthenticationOptions.RoleIdobject that obtains its value from unwrapping a response using theinitial tokenfrom a Cubbyhole.
-
Method Details
-
wrapped
Create aAppRoleAuthenticationOptions.RoleIdobject that obtains its value from unwrapping a response using theinitial tokenfrom a Cubbyhole.- Parameters:
initialToken- must not be null.- Returns:
AppRoleAuthenticationOptions.RoleIdobject that obtains its value from unwrapping a response using theinitial token.- See Also:
-
pull
Create aAppRoleAuthenticationOptions.RoleIdthat 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.RoleIdthat obtains its value using pull-mode.
-
provided
Create aAppRoleAuthenticationOptions.RoleIdthat encapsulates a staticroleId.- Parameters:
roleId- must not be null or empty.- Returns:
AppRoleAuthenticationOptions.RoleIdthat encapsulates a staticroleId.
-