boolean (String error) { return error.startsWith(CERTIFICATE_ERROR) || // https one-way protocol untrusted server certificate error.contains(UNTRUSTED_SERVER_CERTIFICATE) || // valid but untrusted certificates - "issuer is not trusted" error - for both 1.7 and 1.8. // Implementation not based on SVNKit does not persist credentials to emulate situation as if credentials were cached by // Subversion. And in "--non-interactive" mode we could only make Subversion accept untrusted, but not invalid certificate. // So we explicitly check that verification failure is only "issuer is not trusted". If certificate has some other failures, // command will end with error. isValidButUntrustedCertificate(error); }