@UserSecretKeys (JavaScript)
Returns the secret keys stored in a user's ID file in the ID Vault.
Defined in
@Functions (JavaScript)Syntax
@UserSecretKeys(vaultServer:string, userPassword:string, userName:string) : any
@UserSecretKeys() : any
Parameter | Description |
---|---|
vaultServer |
The name of the server running the ID Vault. If no value is provided then the current server name (i.e., the name of the Domino server on which the app is running) will be applied by default. |
userPassword |
The ID Vault password for the user name provided. If no value is provided then XPages will attempt to obtain and use the basic authorization password for the currently logged-in user. If another authentication mechanism is in place on the server, like SAML or SPNEGO, then this default value will not function correctly. |
userName |
The name of the user whose id will be searched for secret keys. If no value is provided then the current user’s name will be applied by default. |
Return value | Description |
---|---|
any |
An array containing the secret keys. |
Examples
The following example is an example of @UserSecretKeys()
being called with three
explicit parameter values. Any secret keys found in Jane Doe’s user id on ID Vault server
"BigIron/Acme" will be returned, assuming the password provided is correct.
@UserSecretKeys("BigIron/Acme", "T0pS3cr3t", "Jane Doe/Acme");
The following example shows @UserSecretKeys()
being called just the ID Vault
server name. The user id is therefore assumed to be the currently logged in user and the basic auth
password is used – if appropriate.
@UserSecretKeys("BigIron/Acme");