7.18.6 • Published 2 days ago
@zowe/secrets-for-zowe-sdk v7.18.6
Secrets Package
Contains APIs for secure credential management.
keyring
API Examples
Developers that reference the dependency keytar
directly in their code need to use the new keyring
module from this package.
Use the keyring
module in the same fashion as keytar
.
Storing and loading credentials
const { keyring } = require("@zowe/secrets-for-zowe-sdk");
await keyring.setPassword("ServiceName", "AccountName", "SomePassword");
const password = await keyring.getPassword("ServiceName", "AccountName");
// password should equal "SomePassword"
Finding a credential
const { keyring } = require("@zowe/secrets-for-zowe-sdk");
const password = await keyring.findPassword("ServiceName/AccountName");
// password should equal "SomePassword"
Finding all credentials matching service
const { keyring } = require("@zowe/secrets-for-zowe-sdk");
const matchingCredentials = await keyring.findCredentials("ServiceName");
// returns:
// [
// { account: "AccountName", password: "SomePassword" },
// ...
// ]
Deleting a credential
const { keyring } = require("@zowe/secrets-for-zowe-sdk");
const wasDeleted = await keyring.deletePassword("ServiceName", "AccountName");
// wasDeleted should be true; ServiceName/AccountName removed from credential vault
For more detailed information, see src/keyring/EXTENDERS.md.
8.0.0-next.202405061946
2 days ago
8.0.0-next.202405031808
5 days ago
8.0.0-next.202404301428
8 days ago
8.0.0-next.202404191414
19 days ago
8.0.0-next.202404032038
1 month ago
8.0.0-next.202403272026
1 month ago
8.0.0-next.202403251613
1 month ago
8.0.0-next.202403141949
2 months ago
8.0.0-next.202403132009
2 months ago
8.0.0-next.202403122137
2 months ago
8.0.0-next.202403061549
2 months ago
8.0.0-next.202403041352
2 months ago
8.0.0-next.202402271901
2 months ago
8.0.0-next.202402261705
2 months ago
8.0.0-next.202402221834
3 months ago
8.0.0-next.202402211923
3 months ago
8.0.0-next.202402132108
3 months ago
8.0.0-next.202402021649
3 months ago
8.0.0-next.202401262128
3 months ago
8.0.0-next.202401232128
4 months ago
8.0.0-next.202401191954
4 months ago
8.0.0-next.202401162202
4 months ago
8.0.0-next.202401081937
4 months ago
8.0.0-next.202401041721
4 months ago
8.0.0-next.202401031939
4 months ago
8.0.0-next.202401022112
4 months ago
8.0.0-next.202311291643
5 months ago
8.0.0-next.202311282012
5 months ago
8.0.0-next.202311162222
6 months ago
8.0.0-next.202311152026
6 months ago
8.0.0-next.202311141903
6 months ago
8.0.0-next.202311132045
6 months ago
7.18.6
7 months ago
7.18.5
8 months ago
7.18.4
8 months ago
7.18.3
9 months ago
7.18.2
9 months ago
7.18.1
9 months ago
7.18.0
9 months ago