Android Open Source - couchdbsyncer-android Connection Settings






From Project

Back to project page couchdbsyncer-android.

License

The source code is released under:

Apache License

If you think the Android project couchdbsyncer-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package au.com.team2moro.couchdbsyncer;
/*from w ww  .  j a  v  a 2  s.c  o m*/
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;

public class ConnectionSettings {
  private String username, password;
  private SSLSocketFactory sslSocketFactory;
  private HostnameVerifier hostnameVerifier;
  
  public ConnectionSettings(String username, String password) {
    this.username = username;
    this.password = password;
  }
  public ConnectionSettings(String username, String password, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier) {
    this(username, password);
    this.sslSocketFactory = sslSocketFactory;
    this.hostnameVerifier = hostnameVerifier;
  }
  
  public String getUsername() {
    return username;
  }
  public String getPassword() {
    return password;
  }
  public SSLSocketFactory getSSLSocketFactory() {
    return sslSocketFactory;
  }
  public HostnameVerifier getHostnameVerifier() {
    return hostnameVerifier;
  }
}




Java Source Code List

au.com.team2moro.couchdbsyncer.Attachment.java
au.com.team2moro.couchdbsyncer.BulkFetcher.java
au.com.team2moro.couchdbsyncer.ConnectionSettingsTrustAll.java
au.com.team2moro.couchdbsyncer.ConnectionSettings.java
au.com.team2moro.couchdbsyncer.DatabaseStore.java
au.com.team2moro.couchdbsyncer.Database.java
au.com.team2moro.couchdbsyncer.Document.java
au.com.team2moro.couchdbsyncer.DownloadPolicy.java
au.com.team2moro.couchdbsyncer.Fetcher.java
au.com.team2moro.couchdbsyncer.SequencedDocument.java
au.com.team2moro.couchdbsyncer.SyncerService.java
au.com.team2moro.couchdbsyncer.Syncer.java
au.com.team2moro.couchdbsyncer.package-info.java