|
|
|
@ -6,6 +6,7 @@ import com.fr.data.security.ssl.SslException;
|
|
|
|
|
import com.fr.data.security.ssl.SslType; |
|
|
|
|
import com.fr.data.security.ssl.impl.NormalSsl; |
|
|
|
|
import com.fr.design.border.UITitledBorder; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.data.datapane.connect.SshPane.KeyFileUITextField; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
@ -22,6 +23,7 @@ import com.fr.file.filter.ChooseFileFilter;
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
|
|
|
|
|
|
import javax.swing.ImageIcon; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -40,11 +42,11 @@ import static com.fr.design.i18n.Toolkit.i18nText;
|
|
|
|
|
public class SslPane extends BasicPane { |
|
|
|
|
UICheckBox usingSsl = new UICheckBox(i18nText("Fine-Design_Basic_Ssl_Using")); |
|
|
|
|
private KeyFileUITextField keyPathCa = new KeyFileUITextField(); |
|
|
|
|
private UIButton fileChooserButtonCa = new UIButton("..."); |
|
|
|
|
private UIButton fileChooserButtonCa = new UIButton(); |
|
|
|
|
private KeyFileUITextField keyPathClientCert = new KeyFileUITextField(); |
|
|
|
|
private UIButton fileChooserButtonClientCert = new UIButton("..."); |
|
|
|
|
private UIButton fileChooserButtonClientCert = new UIButton(); |
|
|
|
|
private KeyFileUITextField keyPathClientKey = new KeyFileUITextField(); |
|
|
|
|
private UIButton fileChooserButtonClientKey = new UIButton("..."); |
|
|
|
|
private UIButton fileChooserButtonClientKey = new UIButton(); |
|
|
|
|
private UICheckBox verifyCa = new UICheckBox(i18nText("Fine-Design_Basic_Ssl_Verify_Ca")); |
|
|
|
|
private UITextField cipher = new UITextField(); |
|
|
|
|
private JPanel jPanel; |
|
|
|
@ -55,6 +57,9 @@ public class SslPane extends BasicPane {
|
|
|
|
|
private double[] columnSize = new double[]{208, p}; |
|
|
|
|
|
|
|
|
|
public SslPane() { |
|
|
|
|
fileChooserButtonCa.setIcon(new ImageIcon(UIConstants.ACCESSIBLE_EDITOR_DOT)); |
|
|
|
|
fileChooserButtonClientCert.setIcon(new ImageIcon(UIConstants.ACCESSIBLE_EDITOR_DOT)); |
|
|
|
|
fileChooserButtonClientKey.setIcon(new ImageIcon(UIConstants.ACCESSIBLE_EDITOR_DOT)); |
|
|
|
|
this.setBorder(UITitledBorder.createBorderWithTitle(Toolkit.i18nText("Fine-Design_Basic_Ssl_Settings"))); |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createLabelFlowLayout()); |
|
|
|
|
jPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|