Class CreateSecret.SecretContent

java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<CreateSecret.SecretContent>
io.helidon.integrations.oci.vault.CreateSecret.SecretContent
Enclosing class:
CreateSecret

public static class CreateSecret.SecretContent extends ApiJsonBuilder<CreateSecret.SecretContent>
The content of the secret and metadata to help identify it.
  • Method Details

    • builder

      public static CreateSecret.SecretContent builder()
      Create a new secret content.
      Returns:
      a new builder
    • create

      public static CreateSecret.SecretContent create(String plainTextSecret)
      Create new content from plain text secret.
      Parameters:
      plainTextSecret - plain text
      Returns:
      a new builder with plain text content
    • name

      public CreateSecret.SecretContent name(String 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

      public CreateSecret.SecretContent content(String content)
      The text content of the secret. Optional.
      Parameters:
      content - content of the secret
      Returns:
      updated builder
      See Also:
    • contentBase64

      public CreateSecret.SecretContent contentBase64(String base64Content)
      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 - either SecretStage.CURRENT or SecretStage.PENDING are allowed
      Returns:
      updated builder