Share via


CookieCredentials Class

Represents an object that contains the credentials used to connect to federated search locations that are configured to use cookie-based authentication.

Inheritance Hierarchy

System.Object
  System.Net.NetworkCredential
    Microsoft.Office.Server.Search.Federation.CookieCredentials
      Microsoft.Office.Server.Search.Federation.FormsCredentials

Namespace:  Microsoft.Office.Server.Search.Federation
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Class CookieCredentials _
    Inherits NetworkCredential
'Usage
Dim instance As CookieCredentials
public class CookieCredentials : NetworkCredential

Remarks

You can use two classes to represent cookie-based authentication data for federated search locations:

  • CookieAuthdata
    Use this class when you programmatically configure federated locations.

  • CookieCredentials
    Use this class in custom federated results Web Parts, when specifying credentials for federated locations configured for per user cookie-based authentication. For more information, see Creating a Custom Federated Search Web Part with a Credentials UI .

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CookieCredentials Members

Microsoft.Office.Server.Search.Federation Namespace

CookieAuthdata

FormsCredentials

Other Resources

Federated Search Overview

Custom Federated Search Web Part Sample