Skip to content

ICredentials

Troy Willmot edited this page Oct 16, 2016 · 2 revisions

Summary

The ICredentials interface is for components that expose raw, unencrypted credentials to other components for authentication. These components keep two part credentials together, and manage their lifetimes, allow advanced use cases where the credentials are erased after use, reducing the chance of being leaked via attacks such as RAM scraping.

For simple use cases where you just want to keep the credentials in memory as standard .Net strings, see SimpleCredentials.

Properties

string Identifier

Returns one part of a two part credential. This part is usually not 'secret' and is used to identify the user/account. In a user name/password pair, this would be the user name. In an OAuth 1.0A token, this would be the token key.

string Secret

Returns one part of a two part credential. This part is considered highly 'secret' and is as proof the given identity is correct. In a user name/password pair, this would be the password. In an OAuth 1.0A token, this would be the token secret/hash key.

Clone this wiki locally