Class SecretVersion

    • Method Detail

      • isAutoRotated

        public Boolean isAutoRotated()
        Gets the autoRotated. Indicates whether the version of the secret was created by automatic rotation.
        Returns:
        the autoRotated
      • getCreatedBy

        public String getCreatedBy()
        Gets the createdBy. The unique identifier that is associated with the entity that created the secret.
        Returns:
        the createdBy
      • getCreatedAt

        public Date getCreatedAt()
        Gets the createdAt. The date when the resource was created. The date format follows `RFC 3339`.
        Returns:
        the createdAt
      • isDownloaded

        public Boolean isDownloaded()
        Gets the downloaded. This field indicates whether the secret data that is associated with a secret version was retrieved in a call to the service API.
        Returns:
        the downloaded
      • getId

        public String getId()
        Gets the id. A UUID identifier.
        Returns:
        the id
      • getSecretName

        public String getSecretName()
        Gets the secretName. The human-readable name of your secret.
        Returns:
        the secretName
      • getSecretType

        public String getSecretType()
        Gets the secretType. The secret type. Supported types are arbitrary, imported_cert, public_cert, private_cert, iam_credentials, service_credentials, kv, and username_password.
        Returns:
        the secretType
      • getSecretGroupId

        public String getSecretGroupId()
        Gets the secretGroupId. A UUID identifier, or `default` secret group.
        Returns:
        the secretGroupId
      • isPayloadAvailable

        public Boolean isPayloadAvailable()
        Gets the payloadAvailable. Indicates whether the secret payload is available in this secret version.
        Returns:
        the payloadAvailable
      • getAlias

        public String getAlias()
        Gets the alias. A human-readable alias that describes the secret version. 'Current' is used for version `n` and 'previous' is used for version `n-1`.
        Returns:
        the alias
      • getVersionCustomMetadata

        public Map<String,​Object> getVersionCustomMetadata()
        Gets the versionCustomMetadata. The secret version metadata that a user can customize.
        Returns:
        the versionCustomMetadata
      • getSecretId

        public String getSecretId()
        Gets the secretId. A UUID identifier.
        Returns:
        the secretId
      • getExpirationDate

        public Date getExpirationDate()
        Gets the expirationDate. The date when the secret material expires. The date format follows the `RFC 3339` format. Supported secret types: arbitrary, imported_cert, public_cert, private_cert, iam_credentials, service_credentials, username_password, and custom_credentials.
        Returns:
        the expirationDate
      • getPayload

        public String getPayload()
        Gets the payload. The secret data that is assigned to an `arbitrary` secret.
        Returns:
        the payload
      • getApiKeyId

        public String getApiKeyId()
        Gets the apiKeyId. The ID of the API key that is generated for this secret.
        Returns:
        the apiKeyId
      • getServiceId

        public String getServiceId()
        Gets the serviceId. The service ID under which the API key (see the `api_key` field) is created. If you omit this parameter, Secrets Manager generates a new service ID for your secret at its creation, and adds it to the access groups that you assign. Optionally, you can use this field to provide your own service ID if you prefer to manage its access directly or retain the service ID after your secret expires, is rotated, or deleted. If you provide a service ID, do not include the `access_groups` parameter.
        Returns:
        the serviceId
      • getApiKey

        public String getApiKey()
        Gets the apiKey. The API key that is generated for this secret. After the secret reaches the end of its lease, the API key is deleted automatically. See the `time-to-live` field to understand the duration of the lease. If you want to continue to use the same API key for future read operations, see the `reuse_api_key` field.
        Returns:
        the apiKey
      • getSerialNumber

        public String getSerialNumber()
        Gets the serialNumber. The unique serial number that was assigned to a certificate by the issuing certificate authority.
        Returns:
        the serialNumber
      • getValidity

        public CertificateValidity getValidity()
        Gets the validity. The date and time that the certificate validity period begins and ends.
        Returns:
        the validity
      • getCertificate

        public String getCertificate()
        Gets the certificate. Your PEM-encoded certificate. The data must be formatted on a single line with embedded newline characters.
        Returns:
        the certificate
      • getIntermediate

        public String getIntermediate()
        Gets the intermediate. The PEM-encoded intermediate certificate that is associated with the root certificate. The data must be formatted on a single line with embedded newline characters.
        Returns:
        the intermediate
      • getPrivateKey

        public String getPrivateKey()
        Gets the privateKey. The PEM-encoded private key that is associated with the certificate. The data must be formatted on a single line with embedded newline characters.
        Returns:
        the privateKey
      • getCsr

        public String getCsr()
        Gets the csr. The certificate signing request.
        Returns:
        the csr
      • getData

        public Map<String,​Object> getData()
        Gets the data. The payload data of a key-value secret.
        Returns:
        the data
      • getIssuingCa

        public String getIssuingCa()
        Gets the issuingCa. The PEM-encoded certificate of the certificate authority that signed and issued this certificate.
        Returns:
        the issuingCa
      • getCaChain

        public List<String> getCaChain()
        Gets the caChain. The chain of certificate authorities that are associated with the certificate.
        Returns:
        the caChain
      • getResourceKey

        public ServiceCredentialsResourceKey getResourceKey()
        Gets the resourceKey. The source service resource key data of the generated service credentials.
        Returns:
        the resourceKey
      • getCredentials

        public ServiceCredentialsSecretCredentials getCredentials()
        Gets the credentials. The properties of the service credentials secret payload.
        Returns:
        the credentials
      • getUsername

        public String getUsername()
        Gets the username. The username that is assigned to an `username_password` secret.
        Returns:
        the username
      • getPassword

        public String getPassword()
        Gets the password. The password that is assigned to an `username_password` secret.
        Returns:
        the password
      • getCredentialsId

        public String getCredentialsId()
        Gets the credentialsId. Credentials created by the custom credentials system.
        Returns:
        the credentialsId
      • getCredentialsContent

        public Map<String,​Object> getCredentialsContent()
        Gets the credentialsContent. The fields that can be passed to and from the custom credentials engine. Allowed types are 'string', 'integer' and 'boolean'.
        Returns:
        the credentialsContent