1 4 package com.sslexplorer.agent; 5 6 import javax.swing.JOptionPane ; 7 8 import com.sslexplorer.boot.RequestHandlerRequest; 9 10 class InteractiveAgentCallback extends DummyAgentCallback { 11 12 protected boolean ok(RequestHandlerRequest request) { 13 return JOptionPane.showConfirmDialog(null, 14 "A SSL-Explorer Agent wants to connect using from " 15 + request.getRemoteAddr() 16 + ". Do you wish to allow this?", 17 "Authorize SSL-Explorer Agent Connection", 18 JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION; 19 } 20 21 } | Popular Tags |