<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QAuthenticator Class Reference ## [[QtNetwork](index.htm) module] 該QAuthenticator類提供了一個驗證對象。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QAuthenticator?other)` * `bool isNull (self)` * `QVariant option (self, QString?opt)` * `dict-of-QString-QVariant options (self)` * `QString password (self)` * `QString realm (self)` * `setOption (self, QString?opt, QVariant?value)` * `setPassword (self, QString?password)` * `setUser (self, QString?user)` * `QString user (self)` ### Special Methods * `bool __eq__ (self, QAuthenticator?other)` * `bool __ne__ (self, QAuthenticator?other)` * * * ## Detailed Description 該QAuthenticator類提供了一個驗證對象。 該QAuthenticator類通常是在使用[authenticationRequired()](qnetworkaccessmanager.html#authenticationRequired)和[proxyAuthenticationRequired()](qnetworkaccessmanager.html#proxyAuthenticationRequired)信號[QNetworkAccessManager](qnetworkaccessmanager.html)和[QAbstractSocket](qabstractsocket.html)。這個類提供了一種訪問需要身份驗證的服務時所需的認證信息傳遞回插座。 QAuthenticator支持以下身份驗證方法: * Basic * NTLM version 2 * Digest-MD5 ### Options 除了身份驗證所需的用戶名和密碼,一個QAuthenticator對象也可以包含額外的選項。該[options](qauthenticator.html#options)( )函數可用于查詢服務器發送傳入的選項,而[setOption](qauthenticator.html#setOption)()函數可以被用來指定設備發送的選擇,要由驗證器計算處理。接受和提供的選項取決于身份驗證類型(見()方法) 。 下表列出了已知傳入的選項,以及接受離任選項。進入選項列表并不詳盡,因為服務器可以在任何時候有更多的信息。即將離任的選項列表是詳盡的,但是,沒有未知的選項將被視為或發送回服務器。 #### Basic | Option | Direction | Description | | --- | --- | --- | | `realm` | Incoming | Contains the realm of the authentication, the same as [realm](qauthenticator.html#realm)() | 基本驗證機制支持沒有傳出選項。 #### NTLM version 2 NTLM身份驗證機制目前不支持傳入或傳出的選項。 #### Digest-MD5 | Option | Direction | Description | | --- | --- | --- | | `realm` | Incoming | Contains the realm of the authentication, the same as [realm](qauthenticator.html#realm)() | 在DIGEST- MD5認證機制支持沒有傳出選項。 * * * ## Method Documentation ``` QAuthenticator.__init__ (self) ``` 構造一個空認證對象 ``` QAuthenticator.__init__ (self, QAuthenticator?other) ``` 構造的副本_other_。 ``` bool QAuthenticator.isNull (self) ``` 返回True如果認證為null 。 ``` QVariant QAuthenticator.option (self, QString?opt) ``` 返回相關選項的值_opt_如果它是由服務器設置。看[QAuthenticator#Options](qauthenticator.html#options)對于傳入選項的更多信息。如果選項_opt_沒有找到,無效[QVariant](qvariant.html)將被退回。 此功能被引入Qt的4.7 。 **See also** [setOption](qauthenticator.html#setOption)( )[options](qauthenticator.html#options)()和[QAuthenticator#Options](qauthenticator.html#options)。 ``` dict-of-QString-QVariant QAuthenticator.options (self) ``` 返回此設置所有傳入的選項[QAuthenticator](qauthenticator.html)通過解析服務器應答對象。看[QAuthenticator#Options](qauthenticator.html#options)對于傳入選項的更多信息。 此功能被引入Qt的4.7 。 **See also** [option](qauthenticator.html#option)()和[QAuthenticator#Options](qauthenticator.html#options)。 ``` QString QAuthenticator.password (self) ``` 返回用于身份驗證的密碼。 **See also** [setPassword](qauthenticator.html#setPassword)( ) 。 ``` QString QAuthenticator.realm (self) ``` 返回需要驗證的領域。 ``` QAuthenticator.setOption (self, QString?opt, QVariant?value) ``` 設置傳出選項_opt_以價值_value_。看[QAuthenticator#Options](qauthenticator.html#options)對于傳出選項的更多信息。 此功能被引入Qt的4.7 。 **See also** [options](qauthenticator.html#options)( )[option](qauthenticator.html#option)()和[QAuthenticator#Options](qauthenticator.html#options)。 ``` QAuthenticator.setPassword (self, QString?password) ``` 設置_password_用于身份驗證。 **See also** [password](qauthenticator.html#password)( ) 。 ``` QAuthenticator.setUser (self, QString?user) ``` 設置_user_用于身份驗證。 **See also** [user](qauthenticator.html#user)( ) 。 ``` QString QAuthenticator.user (self) ``` 返回用于身份驗證的用戶。 **See also** [setUser](qauthenticator.html#setUser)( ) 。 ``` bool QAuthenticator.__eq__ (self, QAuthenticator?other) ``` ``` bool QAuthenticator.__ne__ (self, QAuthenticator?other) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看