Moves ZRTP configurations panel in a "ZRTP Ninja" button thus making them available only for advanced users.

cusax-fix
Yana Stamcheva 15 years ago
parent ef539b7ecb
commit 6b00bd0f62

@ -1047,6 +1047,7 @@ impl.media.security.SECURITY_OFF=Call encryption support off
impl.media.security.SECURITY_ON=Call encryption support on
# ZRTP Configuration
impl.media.security.zrtp.CONFIG=ZRTP Configuration
impl.media.security.zrtp.TITLE=Call
impl.media.security.zrtp.PUB_KEYS=Public keys
impl.media.security.zrtp.HASHES=Hashes
@ -1057,6 +1058,14 @@ impl.media.security.zrtp.STANDARD=Standard
impl.media.security.zrtp.MANDATORY=Mandatory
impl.media.security.zrtp.TRUSTED=Trusted MitM
impl.media.security.zrtp.SASSIGNATURE=SAS signature processing
impl.media.security.zrtp.DESCRIPTION={0} will automatically try to secure all \
your calls and you will both hear and see a notification once a secure \
connection is established. The following button allows ZRTP experts to fine \
tune the way {0} behaves during ZRTP negotiation and you don't need to modify \
any of them in order to have secure calls. You should only change these \
settings if you are well aware of the way ZRTP and encryption in general work.
impl.media.security.zrtp.ZRTP_NINJA=ZRTP Ninja
# Profiler4J
plugin.profiler.PLUGIN_NAME=Profiler4j

@ -201,7 +201,7 @@ public void start(BundleContext bundleContext)
bundleContext.registerService(
ConfigurationForm.class.getName(),
new LazyConfigurationForm(
"net.java.sip.communicator.impl.neomedia.ZrtpConfigurePanel",
"net.java.sip.communicator.impl.neomedia.SecurityConfigForm",
getClass().getClassLoader(),
"impl.media.security.zrtp.CONF_ICON",
"impl.media.security.zrtp.TITLE",

@ -0,0 +1,79 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.neomedia;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import net.java.sip.communicator.service.resources.*;
import net.java.sip.communicator.util.swing.*;
/**
* The <tt>SecurityConfigForm</tt> allows the user to make all needed call
* security configurations. It now wraps the ZRTP form in order to provide some
* more explanations and make complex configurations available only to advanced
* users.
*
* @author Yana Stamcheva
*/
public class SecurityConfigForm
extends TransparentPanel
{
/**
* Creates an instance of <tt>SecurityConfigForm</tt>.
*/
public SecurityConfigForm()
{
super(new BorderLayout());
this.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
final ResourceManagementService resources
= NeomediaActivator.getResources();
JPanel mainPanel = new TransparentPanel(new BorderLayout(0, 10));
add(mainPanel, BorderLayout.NORTH);
JTextPane pane = new JTextPane();
pane.setEditable(false);
pane.setOpaque(false);
pane.setText(resources.getI18NString(
"impl.media.security.zrtp.DESCRIPTION",
new String[]{resources.getSettingsString(
"service.gui.APPLICATION_NAME")}));
mainPanel.add(pane);
JButton zrtpButton = new JButton(
resources.getI18NString("impl.media.security.zrtp.ZRTP_NINJA"));
zrtpButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
SIPCommDialog zrtpDialog = new SIPCommDialog()
{
@Override
protected void close(boolean escaped) {}
};
zrtpDialog.setTitle(
resources.getI18NString("impl.media.security.zrtp.CONFIG"));
zrtpDialog.getContentPane().add(new ZrtpConfigurePanel());
zrtpDialog.setVisible(true);
}
});
JPanel buttonPanel = new TransparentPanel(
new FlowLayout(FlowLayout.CENTER));
buttonPanel.add(zrtpButton);
mainPanel.add(buttonPanel, BorderLayout.SOUTH);
}
}
Loading…
Cancel
Save