Interface AppRoleAuthenticationOptions.SecretId
- Enclosing class:
- AppRoleAuthenticationOptions
public static interface AppRoleAuthenticationOptions.SecretId
SecretId type encapsulating how the secretId is actually obtained. Provides factory
methods to obtain a
AppRoleAuthenticationOptions.SecretId by wrapping, pull-mode or whether to use a
string literal.- Since:
- 2.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionabsent()Create aAppRoleAuthenticationOptions.SecretIdthat represents an absent secretId.Create aAppRoleAuthenticationOptions.SecretIdthat encapsulates a staticsecretId.pull(VaultToken initialToken) Create aAppRoleAuthenticationOptions.SecretIdthat obtains its value using pull-mode, specifying ainitial token.wrapped(VaultToken initialToken) Create aAppRoleAuthenticationOptions.SecretIdobject that obtains its value from unwrapping a response using theinitial tokenfrom a Cubbyhole.
-
Method Details
-
wrapped
Create aAppRoleAuthenticationOptions.SecretIdobject that obtains its value from unwrapping a response using theinitial tokenfrom a Cubbyhole.- Parameters:
initialToken- must not be null.- Returns:
AppRoleAuthenticationOptions.SecretIdobject that obtains its value from unwrapping a response using theinitial token.- See Also:
-
pull
Create aAppRoleAuthenticationOptions.SecretIdthat obtains its value using pull-mode, specifying ainitial token. The token policy must allow reading the SecretId fromauth/approle/role/(role-name)/secret-id.- Parameters:
initialToken- must not be null.- Returns:
AppRoleAuthenticationOptions.SecretIdthat obtains its value using pull-mode.
-
provided
Create aAppRoleAuthenticationOptions.SecretIdthat encapsulates a staticsecretId.- Parameters:
secretId- must not be null or empty.- Returns:
AppRoleAuthenticationOptions.SecretIdthat encapsulates a staticSecretId.
-
absent
Create aAppRoleAuthenticationOptions.SecretIdthat represents an absent secretId. Using this object will not send a secretId during AppRole login.- Returns:
- a
AppRoleAuthenticationOptions.SecretIdthat represents an absent secretId
-