KeyCredential KeyCredential KeyCredential KeyCredential KeyCredential Class

Definition

Represents a key credential, an RSA, 2048-bit, asymmetric key that represents a user's identity for an application.

public : sealed class KeyCredential
struct winrt::Windows::Security::Credentials::KeyCredential
public sealed class KeyCredential
Public NotInheritable Class KeyCredential
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Name Name Name Name Name

Gets the name of the key credential.

Methods

GetAttestationAsync() GetAttestationAsync() GetAttestationAsync() GetAttestationAsync() GetAttestationAsync()

Gets an attestation for a key credential. Call this method after provisioning a key credential for the current user and application.

RequestSignAsync(IBuffer) RequestSignAsync(IBuffer) RequestSignAsync(IBuffer) RequestSignAsync(IBuffer) RequestSignAsync(IBuffer)

Prompts the user to cryptographcally sign data using their key credential.

RetrievePublicKey() RetrievePublicKey() RetrievePublicKey() RetrievePublicKey() RetrievePublicKey()

Gets the public portion of the asymmetric KeyCredential.

RetrievePublicKey(CryptographicPublicKeyBlobType) RetrievePublicKey(CryptographicPublicKeyBlobType) RetrievePublicKey(CryptographicPublicKeyBlobType) RetrievePublicKey(CryptographicPublicKeyBlobType) RetrievePublicKey(CryptographicPublicKeyBlobType)

Gets the public portion of the asymmetric KeyCredential.