xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit fbc6ca989df367cb8deb68ab6f9e963cdaac3a4b
parent be9b5b391d711de2f2485f0c5ae1bd6d788c0c51
Author: Daniel Gultsch <daniel@gultsch.de>
Date:   Thu,  3 Aug 2017 18:48:52 +0200

add javadoc comment to OMEMO test

Diffstat:
Msrc/main/java/eu/siacs/compliance/tests/OMEMO.java | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/java/eu/siacs/compliance/tests/OMEMO.java b/src/main/java/eu/siacs/compliance/tests/OMEMO.java @@ -7,9 +7,14 @@ import rocks.xmpp.extensions.disco.model.info.Identity; import rocks.xmpp.extensions.disco.model.info.InfoNode; import rocks.xmpp.util.concurrent.AsyncResult; -import java.util.Set; import java.util.concurrent.TimeUnit; +/** + * This test checks for the availability of publish-options on the account’s PEP service. + * publish-options allows a client to efficiently change the access model of the OMEMO key material + * such that everyone can access it. Without publish-options OMEMO is only available to contacts with + * mutual presence subscription. + */ public class OMEMO extends AbstractTest { public OMEMO(XmppClient client) { @@ -25,7 +30,7 @@ public class OMEMO extends AbstractTest { if (!infoNode.getFeatures().contains("http://jabber.org/protocol/pubsub#publish-options")) { return Result.FAILED; } - for(Identity identity : infoNode.getIdentities()) { + for (Identity identity : infoNode.getIdentities()) { if ("pep".equalsIgnoreCase(identity.getType()) && "pubsub".equalsIgnoreCase(identity.getCategory())) { return Result.PASSED; }