Class CreateSecret.SecretContent
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<CreateSecret.SecretContent>
io.helidon.integrations.oci.vault.CreateSecret.SecretContent
- Enclosing class:
- CreateSecret
The content of the secret and metadata to help identify it.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CreateSecret.SecretContentbuilder()Create a new secret content.The text content of the secret.contentBase64(String base64Content) The base64-encoded content of the secret.static CreateSecret.SecretContentCreate new content from plain text secret.Names should be unique within a secret.stage(SecretStage stage) The rotation state of the secret content.Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, preBuild, toJson
-
Method Details
-
builder
Create a new secret content.- Returns:
- a new builder
-
create
Create new content from plain text secret.- Parameters:
plainTextSecret- plain text- Returns:
- a new builder with plain text content
-
name
Names should be unique within a secret. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods. Optional.- Parameters:
name- name of the secret- Returns:
- updated builder
-
content
The text content of the secret. Optional.- Parameters:
content- content of the secret- Returns:
- updated builder
- See Also:
-
contentBase64
The base64-encoded content of the secret. Optional.- Parameters:
base64Content- content- Returns:
- updated builder
- See Also:
-
stage
The rotation state of the secret content. The default is CURRENT, meaning that the secret is currently in use. A secret version that you mark as PENDING is staged and available for use, but you don't yet want to rotate it into current, active use. For example, you might create or update a secret and mark its rotation state as PENDING if you haven't yet updated the secret on the target system. When creating a secret, only the value CURRENT is applicable, although the value LATEST is also automatically applied. When updating a secret, you can specify a version's rotation state as either CURRENT or PENDING. Optional.- Parameters:
stage- eitherSecretStage.CURRENTorSecretStage.PENDINGare allowed- Returns:
- updated builder
-