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

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