Create Secret
Create a new Web2 secret. The session signs the request to authenticate you as the principal.
const result = await web2.secret.createSecret({
session,
blackboxUrl: 'https://blackbox.cifersecurity.com:3010',
});
// result.secretId → number
List Secrets
List all Web2 secrets owned by the current principal.
const result = await web2.secret.listSecrets({
session, blackboxUrl,
});
// result.secrets → [{ secretId, ownerPrincipalId, delegatePrincipalId }]