clean up client cert selection code

This commit is contained in:
Daniel Gultsch 2017-05-18 11:31:31 +02:00
parent 41b3df0d43
commit 9fd6539534
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,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