The ViCredStore package includes the following subroutines:
■
■ This subroutine accepts the location of the credential store file. If you do not provide a credential store filename VICredStore::init() looks in the default location.
■ Linux: $HOME/.vmware/credstore/vicredentials.xml
■ Windows: %APPDATA%\VMware\credstore\vicredentials.xml
■ Checks that the credstore directory exists, and creates one if it does not.
■ Creates the vicredentials.xml file and parent directory.If you provide a non-default credential store filename to VICredStore::init(), the credential store at that location is used. If there is no credential store at that location and the directory you specify exists, the initialization process creates the file. If the directory you specify does not exist, the initialization process fails.
Returns the password, or undef if no password is found.If a password already exists for that server and user name, add_password overwrites that password.
server – Server for which all user names are listed.Closes the credential store, and frees all resources associated with it. If you want to run additional credential store subroutines, you must run init again to reinitialize the credential store.