Collapse the table of content
Expand the table of content

Windows.Security.Credentials namespace

Provides a common way to securely store and manage your passcodes, passphrases, and other identification information.

Note  Enterprise credentials can't be roamed. For more information, see the Managing user info (JavaScript) or Managing user info (C#/C++/VB) topics.

The Credential locker sample gives specific scenarios of storing and retrieving credentials.


The Windows.Security.Credentials namespace has these types of members:


KeyCredential Represents a key credential, an RSA, 2048-bit, asymmetric key that represents a user's identity for an application.
KeyCredentialAttestationResult Represents the results of the KeyCredential.GetAttestationAsync method.
KeyCredentialManager Contains methods for basic management of key credentials.
KeyCredentialOperationResult Represents the result of a key credential operation.
KeyCredentialRetrievalResult Represents the result of a key credential retrieval.
PasswordCredential Represents the password credential store.
PasswordCredentialPropertyStore Represents the password credential property store.
PasswordVault Represents a Credential Locker of credentials. The contents of the locker are specific to the app or service. Apps and services don't have access to credentials associated with other apps or services.
WebAccount Identifies an account from a web account provider.
WebAccountProvider Represents a web account authentication provider.



The Windows.Security.Credentials namespace has these enumerations.

KeyCredentialAttestationStatus Represents key credential attestation statuses.
KeyCredentialCreationOption Represents the options for creating key credentials.
KeyCredentialStatus Represents the status of a key credential request.
WebAccountPictureSize Represents the sizes of a web account picture.
WebAccountState Describes the state of a WebAccount object.



The Windows.Security.Credentials namespace defines these interfaces.

IWebAccount Enables a class to represent an account from a web account provider.


See also

Credential locker sample
Managing user info (C#/C++/VB)
Managing user info (JavaScript)
KeyCredentialManager sample (Windows 10)
Credential locker sample (Windows 10)



© 2016 Microsoft