|
|
@ -10,11 +10,8 @@ import com.fr.stable.StringUtils; |
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.workspace.engine.exception.WorkspaceCheckException; |
|
|
|
import com.fr.workspace.engine.exception.WorkspaceCheckException; |
|
|
|
import java.util.HashSet; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
import javax.swing.Icon; |
|
|
|
import javax.swing.Icon; |
|
|
|
import javax.swing.UIManager; |
|
|
|
import javax.swing.UIManager; |
|
|
|
import org.json.Test; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 测试连接的结果。 |
|
|
|
* 测试连接的结果。 |
|
|
@ -223,20 +220,7 @@ public enum TestConnectionResult { |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return AUTH_FAILED; |
|
|
|
return AUTH_FAILED; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private final static Set<TestConnectionResult> VERIFY_SET = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
|
|
|
VERIFY_SET.add(LOGIN_LOCK); |
|
|
|
|
|
|
|
VERIFY_SET.add(PASSWORD_NEED_UPDATE); |
|
|
|
|
|
|
|
VERIFY_SET.add(PASSWORD_STRENGTH_LIMIT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean isVerifyResult(TestConnectionResult result) { |
|
|
|
|
|
|
|
return VERIFY_SET.contains(result); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|