AllJoynCredentials.PasswordCredential Property

Definition

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

The user name, if any, and password used for authentication.

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

Property Value

A user name/password combination.

Attributes

Windows requirements

App capabilities
allJoyn

Remarks

The password value contained in a PasswordCredential object is used by the following authentication mechanisms: It’s also optionally used by Rsa if the private key associated with the certificate is encrypted with a password. The user name is used only by SrpLogon, and is ignored for the other ones.

  • SrpAnonymous
  • SrpLogon
  • Pin
  • EcdhePsk

Note

Used for Rsa if the private key associated with the certificate is encrypted with a password.

The username value contained in a PasswordCredential object is used only by SrpLogon, and is ignored by other authentication mechanisms.

Applies to