docs: @Override
      public Collection<String> getTrustedCertEntriesInKeyStore(String keyStoreName) throws KeyStoreException {
          try {
              KeyStore ks = ksMgr.getJavaKeyStore(keyStoreName);
              if (ks != null) {
                  Collection<String> trustedCerts = new HashSet<String>();
                  Enumeration<String> aliases = ks.aliases();
                  if (aliases != null) {
                      while (aliases.hasMoreElements()) {
                          String alias = aliases.nextElement();
                          if (ks.isCertificateEntry(alias)) {
                              trustedCerts.add(alias);
                          }
                      }
                  }
                  return trustedCerts;
              } else {
                  throw new KeyStoreException("The keystore [" + keyStoreName + "] is not present in the configuration");
              }
          } catch (KeyStoreException e) {
              throw e;
          } catch (Exception e) {
              throw new KeyStoreException("Unexpected error while loading the request trusted certificate entries from keystore: " + keyStoreName, e);
          }
      }