共用方式為


AllJoynCredentials.PasswordCredential 屬性

定義

重要

Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity LiteIoTivity等替代方案,請參閱 iotivity.org 網站。

使用者名稱,如果有的話,以及用於驗證的密碼。

public:
 property PasswordCredential ^ PasswordCredential { PasswordCredential ^ get(); void set(PasswordCredential ^ value); };
PasswordCredential PasswordCredential();

void PasswordCredential(PasswordCredential value);
/// [get: Windows.Foundation.Metadata.Deprecated("AllJoynCredentials has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("AllJoynCredentials has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
PasswordCredential PasswordCredential();

void PasswordCredential(PasswordCredential value);
public PasswordCredential PasswordCredential { get; set; }
public PasswordCredential PasswordCredential { [Windows.Foundation.Metadata.Deprecated("AllJoynCredentials has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("AllJoynCredentials has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")] set; }
var passwordCredential = allJoynCredentials.passwordCredential;
allJoynCredentials.passwordCredential = passwordCredential;
Public Property PasswordCredential As PasswordCredential

屬性值

使用者名稱/密碼組合。

屬性

Windows 需求

應用程式功能
allJoyn

備註

下列驗證機制會使用 PasswordCredential 物件中包含的密碼值:如果與憑證相關聯的私密金鑰以密碼加密,Rsa 也會選擇性地使用它。 使用者名稱只能由 SrpLogon 使用,而且會忽略其他名稱。

  • SrpAnonymous
  • SrpLogon
  • Pin
  • EcdhePsk

注意

如果與憑證相關聯的私密金鑰是以密碼加密,則用於 Rsa。

PasswordCredential物件中包含的使用者名稱值僅供 SrpLogon 使用,其他驗證機制會忽略。

適用於