public static boolean isValidAuthType(String authType){
  log.debug("isValidAuthType");
  if (authType != null) {
    if (!authType.isEmpty()) {
      if (authType.equalsIgnoreCase(LdapAuthBase.LDAP_AUTH_TYPE_SIMPLE))       return true;
      if (authType.equalsIgnoreCase(LdapAuthBase.LDAP_AUTH_TYPE_NONE))       return true;
    }
  }
  return false;
}

public static boolean isValidAuthType ( String authType ) { log . debug ( "isValidAuthType" ) ; if ( authType != null ) { if ( ! authType . isEmpty ( ) ) { if ( authType . equalsIgnoreCase ( LdapAuthBase . LDAP_AUTH_TYPE_SIMPLE ) ) return true ; if ( authType . equalsIgnoreCase ( LdapAuthBase . LDAP_AUTH_TYPE_NONE ) ) return true ; } } return false ; }
determine if is a supported auth type
