SystemCredentialStoreObject

SystemCredentialStoreObject[assoc]

represents a credential store.

Details

  • Credential stores are also called keychains or keyrings, depending on the operating system used.
  • assoc is an Association containing the details needed to use a specific credential store.
  • The keys used in assoc include:
  • "Backend"the store back end to use
    "Keyring"the keyring to use
    "EncryptedFileBase"location of the "EncryptedFile"
  • "Backend" specifies which of the available credential store implementations to use.
  • On Windows, the default back end is "System", which represents Windows Credential Manager.
  • On macOS, the default back end is "System", which represents Apple's Keychain Access password management system.
  • On Linux, the default back end is "EncryptedFile". Linux can also use "KWallet" or "LibSecret" backends if they are available.
  • The "EncryptedFile" back end is available on all platforms and the Wolfram Cloud.
  • For the "EncryptedFile" back end, an optional "EncryptedFileBase" key may be used to specify the location of the encrypted file. The default location is in $UserBaseDirectory/ApplicationData/Credentials.
  • A specific back end may support one or several separate keyrings that store secrets. "Keyring" specifies which of the keyrings is to be used.
  • Depending on the back end used, a specific keyring may need to be unlocked to be used. The system will prompt for a password to unlock the keyring if needed.
  • On Windows, the "System" keyring is the only keyring supported by the Windows Credential Manager.
  • On macOS and Linux, it is possible to create multiple keyrings. To manage keyrings, operating systemspecific tools must be used.
  • For the "EncryptedFile" back end, the name of the encrypted file is based on the "Keyring" value.
  • With the setting "Keyring"Automatic, on macOS, the keyring set by the operating system is used.

Examples

open allclose all

Basic Examples  (1)

Give the current SystemCredentialStoreObject:

Change the credential store:

Reset the credential store to the default:

Scope  (2)

A typical default setting for macOS:

A typical default setting for Windows:

A possible setting for Linux:

If no suitable OS-provided keychain is available, an "EncryptedFile" store is used by default:

Generalizations & Extensions  (2)

Give the current SystemCredentialStoreObject:

Set a secret:

List all stored key names:

Temporarily use another credential store without setting it as a default:

Retrieve the value from the default credential store:

Retrieve the value from the alternative credential store:

Wolfram Research (2020), SystemCredentialStoreObject, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html.

Text

Wolfram Research (2020), SystemCredentialStoreObject, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html.

CMS

Wolfram Language. 2020. "SystemCredentialStoreObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html.

APA

Wolfram Language. (2020). SystemCredentialStoreObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html

BibTeX

@misc{reference.wolfram_2024_systemcredentialstoreobject, author="Wolfram Research", title="{SystemCredentialStoreObject}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_systemcredentialstoreobject, organization={Wolfram Research}, title={SystemCredentialStoreObject}, year={2020}, url={https://reference.wolfram.com/language/ref/SystemCredentialStoreObject.html}, note=[Accessed: 21-November-2024 ]}