logger.debug(String.format("Try to login with user '%1$s'.", strUserName));
if (pobjAO.getAuth_method().isPublicKey()) {
SOSOptionInFileName objAF = pobjAO.getAuth_file();
objAF.CheckMandatory(true);
if (objAF.IsNotEmpty()) {
char[] chrAFContent = objAF.JSFile().File2String().toCharArray();
isAuthenticated = sshConnection.authenticateWithPublicKey(strUserName, chrAFContent, strPW);
}
}
else {