code: public void validate( KeyStore keyStore ) throws CertificateException
  {
      try
      {
          Enumeration<String> aliases = keyStore.aliases();
          
          for ( ; aliases.hasMoreElements(); )
          {
              String alias = aliases.nextElement();
              
              validate(keyStore,alias);
          }
          
      }
      catch ( KeyStoreException kse )
      {
          throw new CertificateException("Unable to retrieve aliases from keystore", kse);
      }
  }
docs: validates all aliases inside of a given keystore
  
  @param keyStore the keystore to validate
  @throws CertificateException if keystore error and unable to validate