public Object run() throws SVNException { if (!isStarted()) { try { initializeContext(); } catch (GSSException gsse) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; } } byte[] outtoken; try { outtoken = myGSSContext.initSecContext(myToken, 0, myTokenLength); } catch (GSSException gsse) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; } if (myToken != null) { return "Negotiate " + SVNBase64.byteArrayToBase64(outtoken); } return null; } };
SVNDebugLog.getDefaultLog().logFine(SVNLogType.NETWORK, "NEGOTIATE: authenticate action: context initializaed"); } catch (GSSException gsse) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_AUTHORIZED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_AUTHORIZED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null;
SVNDebugLog.getDefaultLog().logFine(SVNLogType.NETWORK, "NEGOTIATE: authenticate action: context initializaed"); } catch (GSSException gsse) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Negotiate authentication failed: ''{0}''", gsse.getMajorString()); SVNErrorManager.error(err, SVNLogType.NETWORK); return null;