projects
/
org.ibex.net.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove dependency on Swing
[org.ibex.net.git]
/
src
/
org
/
ibex
/
net
/
ssl
/
SwingVerifyCallback.java
diff --git
a/src/org/ibex/net/ssl/SwingVerifyCallback.java
b/src/org/ibex/net/ssl/SwingVerifyCallback.java
index
832ef2f
..
d82c2d1
100644
(file)
--- a/
src/org/ibex/net/ssl/SwingVerifyCallback.java
+++ b/
src/org/ibex/net/ssl/SwingVerifyCallback.java
@@
-1,3
+1,7
@@
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
package org.ibex.net.ssl;
import javax.swing.*;
package org.ibex.net.ssl;
import javax.swing.*;
@@
-7,11
+11,11
@@
import java.awt.*;
import org.ibex.net.SSL;
import org.ibex.crypto.*;
import org.ibex.net.SSL;
import org.ibex.crypto.*;
-public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
- private Component owner;
+public class SwingVerifyCallback /*extends JDialog*/ implements SSL.VerifyCallback {
+ //private Component owner;
- public SwingVerifyCallback(Component owner) {
- this.owner = owner;
+ public SwingVerifyCallback(/*Component*/Object owner) {
+ //this.owner = owner;
}
/*
super(owner,"Certificate Verification",true);
}
/*
super(owner,"Certificate Verification",true);
@@
-54,6
+58,7
@@
public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
}
public synchronized boolean checkCerts(X509.Certificate[] certs, String hostname, SSL.Exn exn) {
}
public synchronized boolean checkCerts(X509.Certificate[] certs, String hostname, SSL.Exn exn) {
+ /*
final boolean[] ret = new boolean[1];
JTextArea ta = new JTextArea();
ta.append("Subject: " + certs[0].subject + "\n");
final boolean[] ret = new boolean[1];
JTextArea ta = new JTextArea();
ta.append("Subject: " + certs[0].subject + "\n");
@@
-94,6
+99,8
@@
public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback {
}
}
return ret[0];
}
}
return ret[0];
+ */
+ return false;
}
}
}
}