def __LoginBySSPI(host, port, service, adapter, version, path, keyFile, certFile, thumbprint, sslContext, b64token, connectionPoolTimeout=CONNECTION_POOL_IDLE_TIMEOUT_SEC):
 (content, si, stub) = __RetrieveContent(host, port, adapter, version, path, keyFile, certFile, thumbprint, sslContext, connectionPoolTimeout)
 if (b64token is None):
  raise Exception('Token is not defined for sspi login')
 try:
  x = content.sessionManager.LoginBySSPI(b64token)
 except vim.fault.InvalidLogin:
  raise
 except Exception as e:
  raise
 return (si, stub)

def __LoginBySSPI ( host , port , service , adapter , version , path , keyFile , certFile , thumbprint , sslContext , b64token , connectionPoolTimeout = CONNECTION_POOL_IDLE_TIMEOUT_SEC ) : ( content , si , stub ) = __RetrieveContent ( host , port , adapter , version , path , keyFile , certFile , thumbprint , sslContext , connectionPoolTimeout ) if ( b64token is None ) : raise Exception ( 'Token is not defined for sspi login' ) try : x = content . sessionManager . LoginBySSPI ( b64token ) except vim . fault . InvalidLogin : raise except Exception as e : raise return ( si , stub )
private method that performs the actual connect and returns a connected service instance object .