Previous Topic: Open Format Cookie

Next Topic: Identity Factory

IFederationOpenIdentity Interface

The IFederationOpenIdentity interface defines methods for manipulating the open format cookie. The classes exposed by .NET SDK are available under the namespace CA.Federation.FedIdentitySdk. You implement the IFederationOpenIdentity interface by calling one of the methods from the IdentityFactory class.

The IFederationOpenIdentity interface contains the methods listed following. The .NET application calls the appropriate methods of IFederationOpenIdentity interface, depending on the specific functionality. See the Doxygen-generated reference for more information.

void InitCookieInfo (string domain, string cookieZone, string cookieName, char[] password)

Initializes the parameters used for extracting the cookie.

void SetLogger (IFedIdentitySDKLogger logger)

Initializes the SDK logger to the application-specific implementation.

void SetPassword (char[] password)

Sets a shared secret, which is used to generate a key for cookie encryption and decryption.

string GetAttribute (string name)

Gets the value of the specified attribute.

Hashtable GetAttributes ()

Returns a map of all attributes. The map contains string objects representing a single value for each attribute.

void ExtractCookie (HttpRequest request)

Processes the cookie from an HTTP request and extracts the information; requires that the cookie zone and cookie name have been set.

void CreateCookie (HttpResponse response)

Creates the open format cookie; requires that the cookie zone and cookie name have already been established.

void ProcessCookie (HttpCookie cookie)

Extracts information from the specified cookie.

void ProcessCookie (string cookieString)

Processes a string representation of the cookie object.

string ToString()

Returns the cookie version, principal, and assertion attributes.