diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-05-28 20:19:05 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-05-28 20:19:05 +0200 |
commit | f6c5da6d56a07867169db2ff68a52cbf9621cf9b (patch) | |
tree | d379e36a4c9bd210c34ad069c28c88b0c0724275 /src/main/java/de/pixart | |
parent | 03a2e7293af29b64b6b263f76a90e385e7d308fe (diff) |
clean up client cert selection code
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 75eb63e5e..cfb6751f4 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -165,7 +165,8 @@ public class XmppConnection implements Runnable { @Override public String[] getClientAliases(String s, Principal[] principals) { - return new String[0]; + final String alias = account.getPrivateKeyAlias(); + return alias != null ? new String[]{alias} : new String[0]; } @Override |