You can use the Providers interface from the com.vmware.vcenter.crypto_manager.hosts.kms package to list vSphere Native Key Providers on a host and retrieve details about a specific vSphere Native Key Provider.

Procedure

  1. Retrieve a list of vSphere Native Key Providers on a host by calling the list(java.lang.String host, ProvidersTypes.FilterSpec filterSpec) method of the Providers interface.
  2. Retrieve information about a vSphere Native Key Provider on a host by calling the get(java.lang.String host, java.lang.String provider) method of the Providers interface.