Load defaults for new accounts

cusax-fix
Ingo Bauersachs 13 years ago
parent 1f320b5d2b
commit 3e368df399

@ -322,6 +322,8 @@ public void mouseClicked(MouseEvent e)
= new EncryptionConfigurationTableModel(
encryptions,
selectedEncryptions);
loadEncryptionProtocols(new HashMap<String, Integer>(),
new HashMap<String, Boolean>());
this.encryptionProtocolPreferences = new PriorityTable(
this.encryptionConfigurationTableModel,
60);
@ -544,12 +546,15 @@ private void loadEncryptionProtocols(
if(index != -1)
{
name = encryptionProtocolPropertyName.substring(prefixeLength);
enabled = encryptionProtocolStatus.get(
ProtocolProviderFactory.ENCRYPTION_PROTOCOL_STATUS
+ "."
+ name);
encryptions[index] = name;
selectedEncryptions[index] = enabled;
if (isExistingEncryptionProtocol(name))
{
enabled = encryptionProtocolStatus.get(
ProtocolProviderFactory.ENCRYPTION_PROTOCOL_STATUS
+ "."
+ name);
encryptions[index] = name;
selectedEncryptions[index] = enabled;
}
}
}
@ -588,4 +593,17 @@ private void loadEncryptionProtocols(
encryptions,
selectedEncryptions);
}
private boolean isExistingEncryptionProtocol(String protocol)
{
for (String key : ENCRYPTION_PROTOCOLS)
{
if (key.equals(protocol))
{
return true;
}
}
return false;
}
}

Loading…
Cancel
Save