Class ReplicatorConfiguration

    • Constructor Detail

      • ReplicatorConfiguration

        public ReplicatorConfiguration​(@NonNull
                                       Database database,
                                       @NonNull
                                       Endpoint target)
    • 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.