@Override public String[] getValues(String key) { List<String> values = Host.this.entry .getValues(mapKey(key)); if (values == null) { return new String[0]; } return values.toArray(new String[0]); } };
.getValues(SshConstants.IDENTITY_FILE); if (identityFiles != null && !identityFiles.isEmpty()) { identityFile = new File(identityFiles.get(0));
@Override public String[] getValues(String key) { List<String> values = Host.this.entry .getValues(mapKey(key)); if (values == null) { return new String[0]; } return values.toArray(new String[0]); } };
.getValues(SshConstants.IDENTITY_FILE); if (identityFiles != null && !identityFiles.isEmpty()) { identityFile = new File(identityFiles.get(0));
config.setProperty(SshConstants.PORT, Integer.toString(config.getPort())); config.setIdentities(entry.getValues(SshConstants.IDENTITY_FILE)); config.setIdentitiesOnly( flag(entry.getValue(SshConstants.IDENTITIES_ONLY)));