private void createEntryInProvider(Object credentialProvider, String name, char[] credential)
      throws Exception {
      if (!isHadoopCredentialProviderAvailable()) {
        return;
      }

      try {
        createCredentialEntryMethod.invoke(credentialProvider, name, credential);
      } catch (IllegalArgumentException | InvocationTargetException | IllegalAccessException e) {
        return;
      }

      flushMethod.invoke(credentialProvider);
    }
Create a CredentialEntry with the give name and credential in the credentialProvider. The
credentialProvider argument must be an instance of Hadoop CredentialProvider. Instance of
CredentialProvider CredentialEntry name (alias) The credential to store
hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseConfiguration.java