code: public final static String getDefaultType() {
          String cstype;
          cstype = AccessController.doPrivileged(new PrivilegedAction<String>() {
              public String run() {
                  return Security.getProperty(CERTSTORE_TYPE);
              }
          });
          if (cstype == null) {
              cstype = "LDAP";
          }
          return cstype;
      }
docs: Returns the default {@code CertStore} type as specified by the
  {@code certstore.type} security property, or the string
  {@literal "LDAP"} if no such property exists.
  
  <p>The default {@code CertStore} type can be used by applications
  that do not want to use a hard-coded type when calling one of the
  {@code getInstance} methods, and want to provide a default
  {@code CertStore} type in case a user does not specify its own.
  
  <p>The default {@code CertStore} type can be changed by setting
  the value of the {@code certstore.type} security property to the
  desired type.
  
  @see java.security.Security security properties
  @return the default {@code CertStore} type as specified by the
  {@code certstore.type} security property, or the string
  {@literal "LDAP"} if no such property exists.