in command.line/java/com/jetbrains/teamcity/Server.java [73:91]
public void logon(final String username, final String password) throws ECommunicationException, EAuthorizationException {
mySession.setCredentials(username, password);
try {
mySession.authenticate(new Cancelable() {
public long sleepingPeriod() {
return 0;
}
public boolean isCanceled() {
return false;
}
});
} catch (AuthenticationFailedException e) {
throw new EAuthorizationException(Util.getRootCause(e));
} catch (RemoteCallException e) {
throw new ECommunicationException(Util.getRootCause(e));
}
}