X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnet%2Fssl%2FSwingVerifyCallback.java;h=d82c2d1b95c253c1f434e39ab712a6871cdd6dcb;hb=ec1ae676f05b9702578162fef0cc8378c12b2887;hp=832ef2f3ce80337f449f5f59715574326a094882;hpb=2d5539a40aebddc8b35c830dd4077a2b16bd5d17;p=org.ibex.net.git diff --git a/src/org/ibex/net/ssl/SwingVerifyCallback.java b/src/org/ibex/net/ssl/SwingVerifyCallback.java index 832ef2f..d82c2d1 100644 --- 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.*; @@ -7,11 +11,11 @@ import java.awt.*; 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); @@ -54,6 +58,7 @@ public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback { } 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"); @@ -94,6 +99,8 @@ public class SwingVerifyCallback extends JDialog implements SSL.VerifyCallback { } } return ret[0]; + */ + return false; } }