mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +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.
|
* @param <C> the resulting connection configuration type parameter.
|
||||||
*/
|
*/
|
||||||
public abstract static class Builder<B extends Builder<B, C>, C extends ConnectionConfiguration> {
|
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 DnssecMode dnssecMode = DnssecMode.disabled;
|
||||||
private String keystorePath = System.getProperty("javax.net.ssl.keyStore");
|
private String keystorePath = System.getProperty("javax.net.ssl.keyStore");
|
||||||
private String keystoreType = KeyStore.getDefaultType();
|
private String keystoreType = KeyStore.getDefaultType();
|
||||||
|
|
|
@ -225,6 +225,7 @@ public class DummyConnection extends AbstractXMPPConnection {
|
||||||
ConnectionConfiguration.Builder<Builder, DummyConnectionConfiguration> {
|
ConnectionConfiguration.Builder<Builder, DummyConnectionConfiguration> {
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
|
setSecurityMode(SecurityMode.disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue