Jaa


KeyCredential Class

Definition

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

public ref class KeyCredential sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class KeyCredential final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class KeyCredential
Public NotInheritable Class KeyCredential
Inheritance
Object Platform::Object IInspectable KeyCredential
Attributes

Windows requirements

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

Properties

Name

Gets the name of the key credential.

Methods

GetAttestationAsync()

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

RequestSignAsync(IBuffer)

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

RetrievePublicKey()

Gets the public portion of the asymmetric KeyCredential.

RetrievePublicKey(CryptographicPublicKeyBlobType)

Gets the public portion of the asymmetric KeyCredential.

Applies to