Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.



Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Security::Credentials [C++]



See also

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



© 2015 Microsoft