Class CredentialStoreAdmin


  • public class CredentialStoreAdmin
    extends java.lang.Object
    ******************************************************************************** The CredentialStoreAdmin class is a command-line tool that provides complete access to the credential store backing file on the local machine.

    Usage Notes

    Generally, only accounts created expressly for the purpose of running automated applications or agents should be stored in the credential store. The CredentialStoreAdmin tool can display user accounts and passwords stored in the credential store in clear text, at the console prompt. Here are some additional usage guidelines:

    • Keep this tool in a password-protected sub-directory that can be accessed only by appropriate administrators.
    • Do not allow this tool to be used by non-administrator users.
    • Do not use CredentialStoreAdmin for the root or Administrator user account and password. Instead, create special user accounts for automated, agent-style software. Grant such user accounts specifically created roles, or use appropriately privileged, non-Administrator roles for these accounts.

    Command Line:

    java com.vmware.security.CredentialStoreAdmin [command -arg1 -arg2...]

    Commands

    • add Add a user account and password for a specified host to the credential store
    • get Obtain the password for a specified user account and host
    • help Display help for the commands for this tool
    • list List all host names and user accounts contained in the credential store.
         Use with --showpw argument to display in cleartext.
         Use with -h argument to list user name and password for the host.
    • remove Remove the user account and password from the credential store for the specified account
    • clear Clear all content from the credential store

    Arguments:

    • -f filename. Optional. Specify a different name, including path, for the credential store backing file.
    • -h hostname. Required for add, get, and remove. Optional for list.
    • -u user account. Required for add, get, and remove.
    • -p password. Required for add.
    • --showpw Displays password in cleartext.

    Usage Examples:

    java com.vmware.security.credstore.CredentialStoreAdmin clear
    java com.vmware.security.credstore.CredentialStoreAdmin add -h myhostname -u myuser -p mypass
    java com.vmware.security.credstore.CredentialStoreAdmin list -h myhostname
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CredentialStoreAdmin

        public CredentialStoreAdmin()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws javax.crypto.IllegalBlockSizeException,
                                javax.crypto.BadPaddingException
        Throws:
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException