-
Notifications
You must be signed in to change notification settings - Fork 1
ICredentials
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.
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.
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.