MCPcopy Create free account
hub / github.com/apache/cloudstack / _negotiateAuthentication

Method _negotiateAuthentication

systemvm/agent/noVNC/core/rfb.js:2229–2272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2227 }
2228
2229 _negotiateAuthentication() {
2230 switch (this._rfbAuthScheme) {
2231 case securityTypeNone:
2232 case securityTypeVNCAuth:
2233 case securityTypeVeNCrypt:
2234 if (this._rfbVersion >= 3.8) {
2235 this._rfbInitState = 'SecurityResult';
2236 } else {
2237 this._rfbInitState = 'ClientInitialisation';
2238 }
2239 return true;
2240
2241 case securityTypeXVP:
2242 return this._negotiateXvpAuth();
2243
2244 case securityTypeARD:
2245 return this._negotiateARDAuth();
2246
2247 case securityTypeVNCAuth:
2248 return this._negotiateStdVNCAuth();
2249
2250 case securityTypeTight:
2251 return this._negotiateTightAuth();
2252
2253 case securityTypeVeNCrypt:
2254 return this._negotiateVeNCryptAuth();
2255
2256 case securityTypePlain:
2257 return this._negotiatePlainAuth();
2258
2259 case securityTypeUnixLogon:
2260 return this._negotiateTightUnixAuth();
2261
2262 case securityTypeRA2ne:
2263 return this._negotiateRA2neAuth();
2264
2265 case securityTypeMSLogonII:
2266 return this._negotiateMSLogonIIAuth();
2267
2268 default:
2269 return this._fail("Unsupported auth scheme (scheme: " +
2270 this._rfbAuthScheme + ")");
2271 }
2272 }
2273
2274 _handleSecurityResult() {
2275 if (this._sock.rQwait('VNC auth response ', 4)) { return false; }

Callers 2

_negotiateXvpAuthMethod · 0.95
_initMsgMethod · 0.95

Calls 10

_negotiateXvpAuthMethod · 0.95
_negotiateARDAuthMethod · 0.95
_negotiateStdVNCAuthMethod · 0.95
_negotiateTightAuthMethod · 0.95
_negotiatePlainAuthMethod · 0.95
_negotiateRA2neAuthMethod · 0.95
_failMethod · 0.95

Tested by

no test coverage detected