1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

[core] Set default SecurityMode to 'required' in ConnectionConfiguration

This commit is contained in:
Florian Schmaus 2020-05-25 13:51:25 +02:00
parent 70188dbe57
commit 7156849c77
2 changed files with 2 additions and 1 deletions

View file

@ -600,7 +600,7 @@ public abstract class ConnectionConfiguration {
* @param <C> the resulting connection configuration type parameter.
*/
public abstract static class Builder<B extends Builder<B, C>, C extends ConnectionConfiguration> {
private SecurityMode securityMode = SecurityMode.ifpossible;
private SecurityMode securityMode = SecurityMode.required;
private DnssecMode dnssecMode = DnssecMode.disabled;
private String keystorePath = System.getProperty("javax.net.ssl.keyStore");
private String keystoreType = KeyStore.getDefaultType();

View file

@ -225,6 +225,7 @@ public class DummyConnection extends AbstractXMPPConnection {
ConnectionConfiguration.Builder<Builder, DummyConnectionConfiguration> {
private Builder() {
setSecurityMode(SecurityMode.disabled);
}
@Override