Share via


KeyCredentialManager.OpenAsync Method

Definition

Overloads

Name Description
OpenAsync(String)

Retrieves a key credential for the current user and application.

OpenAsync(String, ChallengeResponseKind, AttestationChallengeHandler)

OpenAsync(String)

Retrieves a key credential for the current user and application.

public:
 static IAsyncOperation<KeyCredentialRetrievalResult ^> ^ OpenAsync(Platform::String ^ name);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<KeyCredentialRetrievalResult> OpenAsync(winrt::hstring const& name);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<KeyCredentialRetrievalResult> OpenAsync(string name);
function openAsync(name)
Public Shared Function OpenAsync (name As String) As IAsyncOperation(Of KeyCredentialRetrievalResult)

Parameters

name
String

Platform::String

winrt::hstring

The name of the key credential to open.

Returns

When this method completes, it returns the results of the key credential retrieval.

Attributes

Remarks

The OpenAsync method retrieves an existing key credential. The retrieved key can be used for cryptographic operations such as signing and encryption.

Key Usage

The key is an RSA 2048-bit key. It supports operations like:

  • Generating signatures in PKCS #1 RSA PSS format with SHA256.
  • Encrypting data using appropriate padding schemes such as PKCS #1 OAEP.

Applies to

OpenAsync(String, ChallengeResponseKind, AttestationChallengeHandler)

public:
 static IAsyncOperation<KeyCredentialRetrievalResult ^> ^ OpenAsync(Platform::String ^ name, ChallengeResponseKind callbackType, AttestationChallengeHandler ^ attestationCallback);
/// [Windows.Foundation.Metadata.Overload("OpenAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<KeyCredentialRetrievalResult> OpenAsync(winrt::hstring const& name, ChallengeResponseKind const& callbackType, AttestationChallengeHandler const& attestationCallback);
[Windows.Foundation.Metadata.Overload("OpenAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<KeyCredentialRetrievalResult> OpenAsync(string name, ChallengeResponseKind callbackType, AttestationChallengeHandler attestationCallback);
function openAsync(name, callbackType, attestationCallback)
Public Shared Function OpenAsync (name As String, callbackType As ChallengeResponseKind, attestationCallback As AttestationChallengeHandler) As IAsyncOperation(Of KeyCredentialRetrievalResult)

Parameters

name
String

Platform::String

winrt::hstring

callbackType
ChallengeResponseKind
attestationCallback
AttestationChallengeHandler

Returns

Attributes

Applies to