listSecrets
Description
listSecrets
displays the names and metadata sizes of all secrets in
your MATLAB® vault. Your MATLAB vault is accessible only from the exact combination of your operating system
account and local machine.
t = listSecrets
creates a table with the secret names and
metadata.
Examples
List Secret Names and Metadata Sizes
List the names and metadata sizes of all the secrets in your MATLAB vault.
listSecrets
SecretName SecretMetadata ________________ _______________________________________________ "PDFpassword" {[dictionary (string ⟼ cell) with 2 entries ]} "AWS_access_key" {[dictionary (string ⟼ cell) with 3 entries ]} "Azure_WASB_KEY" {[dictionary (string ⟼ cell) with 2 entries ]} "OAuth_token" {[dictionary (string ⟼ cell) with 3 entries ]} "certificate3" {[dictionary (string ⟼ cell) with no entries]} "SFTPpassword" {[dictionary (string ⟼ cell) with 4 entries ]}
Create Table of Secret Metadata
Assign the names and metadata sizes of all your secrets to a table.
t = listSecrets
t = 6×2 table SecretName SecretMetadata ________________ _______________________________________________ "PDFpassword" {[dictionary (string ⟼ cell) with 2 entries ]} "AWS_access_key" {[dictionary (string ⟼ cell) with 3 entries ]} "Azure_WASB_KEY" {[dictionary (string ⟼ cell) with 2 entries ]} "OAuth_token" {[dictionary (string ⟼ cell) with 3 entries ]} "certificate3" {[dictionary (string ⟼ cell) with no entries]} "SFTPpassword" {[dictionary (string ⟼ cell) with 4 entries ]}
More About
MATLAB Vault
Your secrets are stored in your MATLAB vault, which is accessible only from the exact combination of your operating system account and local machine. Your vault and secrets, which do not leave your local machine, persist across MATLAB sessions. Each secret consists of a name, value, and optional metadata.
Secret name – A unique case-sensitive text identifier for the secret. The secret name is stored unencrypted in your vault as a string scalar.
Secret value – A text value associated with the secret. The Secret Prompt dialog box, where you enter the secret value, supports copy-paste functionality. The secret value is stored encrypted in your vault using industry standard AES-256 encryption. The secret value is returned as a string scalar.
Secret metadata – A dictionary containing additional information associated with the secret. The optional secret metadata is stored unencrypted in your vault.
To set a secret, use setSecret
.
Version History
Introduced in R2024a
See Also
setSecret
| getSecret
| isSecret
| removeSecret
| setSecretMetadata
| getSecretMetadata
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)