Class GetSecretBundle.Response

Enclosing class:
GetSecretBundle

public static class GetSecretBundle.Response extends OciResponseParser
Response object parsed from JSON returned by the RestApi.
  • Method Details

    • metadata

      public Map<String,String> metadata()
      Customer-provided contextual metadata for the secret.
      Returns:
      metadata
    • secretId

      public String secretId()
      The OCID of the secret.
      Returns:
      secret OCID
    • stages

      public List<SecretStage> stages()
      A list of possible rotation states for the secret version.
      Returns:
      stages
    • timeCreated

      public Optional<Instant> timeCreated()
      The time when the secret bundle was created.
      Returns:
      time of creation
    • timeDeleted

      public Optional<Instant> timeDeleted()
      The time the secret would be deleted.
      Returns:
      time of deletion
    • expirationTime

      public Optional<Instant> expirationTime()
      An optional property indicating when the secret version will expire.
      Returns:
      expiration time
    • versionName

      public Optional<String> versionName()
      The name of the secret version. Labels are unique across the different versions of a particular secret.
      Returns:
      version name
    • versionNumber

      public int versionNumber()
      The version number of the secret.
      Returns:
      version number
    • secretBytes

      public Optional<byte[]> secretBytes()
      The content of the secrets, as bytes.
      Returns:
      byte value if present
    • secretString

      public Optional<String> secretString()
      The content of the secrets as a string. This method will attempt to create a string from the provided bytes using UTF-8 encoding.
      Returns:
      string value if present