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:
parent
70188dbe57
commit
7156849c77
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -225,6 +225,7 @@ public class DummyConnection extends AbstractXMPPConnection {
|
|||
ConnectionConfiguration.Builder<Builder, DummyConnectionConfiguration> {
|
||||
|
||||
private Builder() {
|
||||
setSecurityMode(SecurityMode.disabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue