- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonParser
-
- io.helidon.integrations.oci.connect.OciResponseParser
-
- io.helidon.integrations.oci.vault.Secret
-
public class Secret extends OciResponseParser
A secret obtained from the vault. This object does not contain the actual secret content, please seeOciVaultRx.getSecretBundle(io.helidon.integrations.oci.vault.GetSecretBundle.Request)
to obtain secret content.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
compartmentId()
The OCID of the compartment where the secret was created.Instant
created()
A property indicating when the secret was created.Optional<Integer>
currentVersionNumber()
The version number of the secret version that's currently in use.Optional<Instant>
deleted()
An optional property indicating when to delete the secret.Optional<String>
description()
A brief description of the secret.String
id()
The OCID of the secret.Optional<String>
keyId()
The OCID of the master encryption key that is used to encrypt the secret.Optional<String>
lifecycleDetail()
Additional information about the current lifecycle state of the secret.String
lifecycleState()
The current lifecycle state of the secret.String
name()
The user-friendly name of the secret.String
vaultId()
The OCID of the vault where the secret exists.Optional<Instant>
versionExpires()
An optional property indicating when the current secret version will expire.-
Methods inherited from class io.helidon.integrations.oci.connect.OciResponseParser
getInstant, toInstant
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
-
-
-
Method Detail
-
compartmentId
public String compartmentId()
The OCID of the compartment where the secret was created.- Returns:
- compartment OCID
-
id
public String id()
The OCID of the secret.- Returns:
- secret OCID
-
lifecycleState
public String lifecycleState()
The current lifecycle state of the secret.- Returns:
- lifecycle state
-
name
public String name()
The user-friendly name of the secret. Avoid entering confidential information.- Returns:
- name
-
created
public Instant created()
A property indicating when the secret was created.- Returns:
- creation instant
-
vaultId
public String vaultId()
The OCID of the vault where the secret exists.- Returns:
- vault OCID
-
currentVersionNumber
public Optional<Integer> currentVersionNumber()
The version number of the secret version that's currently in use.- Returns:
- version number
-
description
public Optional<String> description()
A brief description of the secret. Avoid entering confidential information.- Returns:
- description
-
keyId
public Optional<String> keyId()
The OCID of the master encryption key that is used to encrypt the secret.- Returns:
- key OCID
-
lifecycleDetail
public Optional<String> lifecycleDetail()
Additional information about the current lifecycle state of the secret.- Returns:
- lifecycle information
-
versionExpires
public Optional<Instant> versionExpires()
An optional property indicating when the current secret version will expire.- Returns:
- when the version expires
-
-