public void createEntry(Configuration conf, String name, char[] credential) throws Exception {
      if (!isHadoopCredentialProviderAvailable()) {
        return;
      }

      List<Object> providers = getCredentialProviders(conf);
      if (null == providers) {
        throw new IOException(
          "Could not fetch any CredentialProviders, " + "is the implementation available?");
      }

      Object provider = providers.get(0);
      createEntryInProvider(provider, name, credential);
    }
Create a CredentialEntry using the configured Providers. If multiple CredentialProviders are
configured, the first will be used. Configuration for the CredentialProvider CredentialEntry
name (alias) The credential
hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseConfiguration.java