summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Hudson <nick.hudson@isode.com>2012-03-13 09:32:17 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-19 11:18:23 (GMT)
commit843382f762f88f37d9b363fe3fc1418326894d21 (patch)
tree1a07cce8dc9989ac4988706d58e89f7246d7e91d /src/com/isode/stroke/examples
parent0a3221059218de8290ed5b6e16d3234a8ab40bad (diff)
downloadstroke-843382f762f88f37d9b363fe3fc1418326894d21.zip
stroke-843382f762f88f37d9b363fe3fc1418326894d21.tar.bz2
Update CoreClient to be a bit more in line with Swiften
This change - renames the "onError" signal to be "onDisconnected" (as per change 59be74ec6 in Swiften) - adds "setCertificateTrustChecker()" method and uses the supplied checker when configuring TLS Test-information: My applications still work. When I configure my server with a certificate that doesn't correspond to the requirements in RFC 6120, my CertificateTrustChecker gets called, and the session is either dropped or maintained depending on what my checker returns.
Diffstat (limited to 'src/com/isode/stroke/examples')
-rw-r--r--src/com/isode/stroke/examples/gui/StrokeGUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/isode/stroke/examples/gui/StrokeGUI.java b/src/com/isode/stroke/examples/gui/StrokeGUI.java
index 0422abb..e8580fc 100644
--- a/src/com/isode/stroke/examples/gui/StrokeGUI.java
+++ b/src/com/isode/stroke/examples/gui/StrokeGUI.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2011, Isode Limited, London, England.
+ * Copyright (c) 2010-2012, Isode Limited, London, England.
* All rights reserved.
*/
@@ -173,7 +173,7 @@ public class StrokeGUI extends javax.swing.JFrame {
thisObject.handleMessageReceived(p1);
}
});
- client_.onError.connect(new Slot1<ClientError>() {
+ client_.onDisconnected.connect(new Slot1<ClientError>() {
public void call(ClientError p1) {
thisObject.handleClientError(p1);