ICredentialProviderCredential interface
Exposes methods that enable the handling of a credential.
Members
The ICredentialProviderCredential interface inherits from the IUnknown interface. ICredentialProviderCredential also has these types of members:
Methods
The ICredentialProviderCredential interface has these methods.
| Method | Description |
|---|---|
| Advise |
Enables a credential to initiate events in the Logon UI or Credential UI through a callback interface. This method should be called before other methods in ICredentialProviderCredential interface. |
| CommandLinkClicked |
Enables the Logon UI and Credential UI to indicate that a link was clicked. |
| GetBitmapValue |
Enables retrieval of bitmap data from a credential with a bitmap field. |
| GetCheckboxValue |
Retrieves the checkbox value. |
| GetComboBoxValueAt |
Gets the string label for a combo box entry at the given index. |
| GetComboBoxValueCount |
Gets a count of the items in the specified combo box and designates which item should have initial selection. |
| GetFieldState |
Retrieves the field state. The Logon UI and Credential UI use this to gain information about a field of a credential to display this information in the user tile. |
| GetSerialization |
Called in response to an attempt to submit this credential to the underlying authentication engine. |
| GetStringValue |
Enables retrieval of text from a credential with a text field. |
| GetSubmitButtonValue |
Retrieves the identifier of a field that the submit button should be placed next to in the Logon UI. |
| ReportResult |
Translates a received error status code into the appropriate user-readable message. |
| SetCheckboxValue |
Enables a Logon UI and Credential UI ro indicate that a checkbox value has changed. |
| SetComboBoxSelectedValue |
Enables a Logon UI and Credential UI to indicate that a combo box value has been selected. |
| SetDeselected |
Called when a credential loses selection. |
| SetSelected |
Called when a credential is selected. Enables the implementer to set logon characteristics. |
| SetStringValue |
Enables a Logon UI or Credential UI to update the text for a CPFT_EDIT_TEXT fields as the user types in them. |
| UnAdvise |
Used by the Logon UI or Credential UI to advise the credential that event callbacks are no longer accepted. |
Remarks
When to Implement
ICredentialProviderCredential is implemented by outside parties providing a Logon UI or Credential UI prompting for user credentials. Enumeration of user tiles cannot be done without an implementation of this interface.
Credential Provider Best Practices
Credential providers handle extremely sensitive user secrets in order to complete logon and unlock requests. As a best practice, secret information such as passwords and PINs should be handled with the utmost care. Proper techniques for handling secret information within a credential provider are:
- Always securely discard secrets. To do this, call SecureZeroMemory before freeing the memory used to hold any secret.
- Securely discard secrets promptly after they are used.
- Securely discard secrets if they are not used for their intended purpose within an expected amount of time.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also