FederationConfiguration FederationConfiguration FederationConfiguration FederationConfiguration Class

Definition

Exposes properties that contain federation settings that control the behavior of the WS-Federation Authentication Module (WSFederationAuthenticationModule) and the Session Authentication Module (SessionAuthenticationModule) in web applications.

public ref class FederationConfiguration
public class FederationConfiguration
type FederationConfiguration = class
Public Class FederationConfiguration
Inheritance
FederationConfigurationFederationConfigurationFederationConfigurationFederationConfiguration

Remarks

By default web applications have a single FederationConfiguration object that is accessed through the FederatedAuthentication.FederationConfiguration property. The first time the property is accessed a new FederationConfiguration instance is initialized from settings in the configuration file and the FederatedAuthentication.FederationConfigurationCreated event is raised. You can use the properties and methods exposed by the FederationConfiguration class to modify or replace the object initialized from configuration in an event handler. This object is available through the FederationConfigurationCreatedEventArgs.FederationConfiguration property inside the event handler.

Constructors

FederationConfiguration() FederationConfiguration() FederationConfiguration() FederationConfiguration()

Initializes a new instance of the FederationConfiguration class by loading settings from the system.identityModel.services section of the configuration file.

FederationConfiguration(Boolean) FederationConfiguration(Boolean) FederationConfiguration(Boolean) FederationConfiguration(Boolean)

Initializes a new instance of the FederationConfiguration class by optionally loading settings from the system.identityModel.services section of the configuration file.

FederationConfiguration(String) FederationConfiguration(String) FederationConfiguration(String) FederationConfiguration(String)

Initializes a new instance of the FederationConfiguration class from the <federationConfiguration> element with the specified name.

Fields

DefaultFederationConfigurationName DefaultFederationConfigurationName DefaultFederationConfigurationName DefaultFederationConfigurationName

Defines the name of the default <federationConfiguration> element from which settings should be loaded. This is an empty string as the default element is unnamed.

Properties

CookieHandler CookieHandler CookieHandler CookieHandler

Gets or sets the cookie handler to be used by the Session Authentication Module (SessionAuthenticationModule).

CustomElement CustomElement CustomElement CustomElement

Gets or sets the custom XML element, if any, present in this configuration.

IdentityConfiguration IdentityConfiguration IdentityConfiguration IdentityConfiguration

Gets or sets the IdentityConfiguration object associated with this instance.

IsInitialized IsInitialized IsInitialized IsInitialized

Gets or sets a value that indicates whether the Initialize() method has been called.

Name Name Name Name

Gets the name associated with this instance.

ServiceCertificate ServiceCertificate ServiceCertificate ServiceCertificate

Gets or sets the X.509 certificate used to sign WS-Federation protocol messages.

WsFederationConfiguration WsFederationConfiguration WsFederationConfiguration WsFederationConfiguration

Gets or sets the configuration settings for the WS-Federation Authentication Module (WSFederationAuthenticationModule).

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize() Initialize() Initialize() Initialize()

Initializes the current instance.

LoadConfiguration(FederationConfigurationElement) LoadConfiguration(FederationConfigurationElement) LoadConfiguration(FederationConfigurationElement) LoadConfiguration(FederationConfigurationElement)

Loads the properties for the current instance from the configuration file. This method is called by constructors that initialize the newly created FederationConfiguration from configuration settings.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to