Package com.couchbase.lite
Class ReplicatorConfiguration
- java.lang.Object
-
- com.couchbase.lite.AbstractReplicatorConfiguration
-
- com.couchbase.lite.ReplicatorConfiguration
-
public final class ReplicatorConfiguration extends AbstractReplicatorConfiguration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
AbstractReplicatorConfiguration.ReplicatorType
-
-
Field Summary
-
Fields inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
DISABLE_HEARTBEAT
-
-
Constructor Summary
Constructors Constructor Description ReplicatorConfiguration(Database database, Endpoint target)
ReplicatorConfiguration(ReplicatorConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAcceptOnlySelfSignedServerCertificate()
Return whether the replicator will accept any and only self-signed server certificates.ReplicatorConfiguration
setAcceptOnlySelfSignedServerCertificate(boolean acceptOnlySelfSignedServerCertificate)
Specify whether the replicator will accept any and only self-signed certificates.-
Methods inherited from class com.couchbase.lite.AbstractReplicatorConfiguration
getAuthenticator, getChannels, getConflictResolver, getDatabase, getDocumentIDs, getHeaders, getHeartbeat, getMaxAttempts, getMaxAttemptWaitTime, getPinnedServerCertificate, getPullFilter, getPushFilter, getReplicatorType, getTarget, getType, isAutoPurgeEnabled, isContinuous, setAuthenticator, setAutoPurgeEnabled, setChannels, setConflictResolver, setContinuous, setDocumentIDs, setHeaders, setHeartbeat, setMaxAttempts, setMaxAttemptWaitTime, setPinnedServerCertificate, setPullFilter, setPushFilter, setReplicatorType, setType, toString
-
-
-
-
Constructor Detail
-
ReplicatorConfiguration
public ReplicatorConfiguration(@NonNull Database database, @NonNull Endpoint target)
-
ReplicatorConfiguration
public ReplicatorConfiguration(@NonNull ReplicatorConfiguration config)
-
-
Method Detail
-
setAcceptOnlySelfSignedServerCertificate
@NonNull public ReplicatorConfiguration setAcceptOnlySelfSignedServerCertificate(boolean acceptOnlySelfSignedServerCertificate)
Specify whether the replicator will accept any and only self-signed certificates. Any non-self-signed certificates will be rejected to avoid accidentally using this mode with the non-self-signed certs in production. The default value is false.- Parameters:
acceptOnlySelfSignedServerCertificate
- Whether the replicator will accept any and only self-signed certificates.- Returns:
- this.
-
isAcceptOnlySelfSignedServerCertificate
public boolean isAcceptOnlySelfSignedServerCertificate()
Return whether the replicator will accept any and only self-signed server certificates.
-
-