AllJoynCredentials.PasswordCredential 属性

定义

重要

Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen Alliance 赞助)是一种开源发现和通信协议,适用于物联网 (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 使用,其他身份验证机制会忽略该值。

适用于