FederationConfiguration 类

定义

公开包含控制 WS-Federation 身份验证模块的联合设置的属性(WSFederationAuthenticationModule)和在 Web 应用程序的“会话身份验证模块”(SessionAuthenticationModule)。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
继承
FederationConfiguration

注解

默认情况下, web 应用程序FederationConfiguration具有FederatedAuthentication.FederationConfiguration通过属性访问的单个对象。By default web applications have a single FederationConfiguration object that is accessed through the FederatedAuthentication.FederationConfiguration property. 第一次访问该属性时FederationConfiguration FederatedAuthentication.FederationConfigurationCreated , 将从配置文件中的设置初始化一个新实例, 并引发事件。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. 您可以使用FederationConfiguration类公开的属性和方法来修改或替换事件处理程序中从配置中初始化的对象。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. 此对象可通过事件处理FederationConfigurationCreatedEventArgs.FederationConfiguration程序中的属性使用。This object is available through the FederationConfigurationCreatedEventArgs.FederationConfiguration property inside the event handler.

构造函数

FederationConfiguration()

通过加载设置初始化 FederationConfiguration 选件类的新实例从配置文件的 system.identityModel.services 部分。Initializes a new instance of the FederationConfiguration class by loading settings from the system.identityModel.services section of the configuration file.

FederationConfiguration(Boolean)

通过有选择地加载来自配置文件的 system.identityModel.services 部分的设置来初始化 FederationConfiguration 类的新的实例。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> 元素初始化 FederationConfiguration 类的新实例。Initializes a new instance of the FederationConfiguration class from the <federationConfiguration> element with the specified name.

字段

DefaultFederationConfigurationName

定义应加载设置的 <federationConfiguration> 元素的默认名称。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.

属性

CookieHandler

获取或设置将由会话身份验证模块 (SessionAuthenticationModule) 使用的 Cookie 处理程序。Gets or sets the cookie handler to be used by the Session Authentication Module (SessionAuthenticationModule).

CustomElement

获取或设置此配置中存在的自定义 XML 元素(如有)。Gets or sets the custom XML element, if any, present in this configuration.

IdentityConfiguration

获取或设置与此实例关联的 IdentityConfiguration 对象。Gets or sets the IdentityConfiguration object associated with this instance.

IsInitialized

获取或设置一个值,该值指示是否已调用 Initialize() 方法。Gets or sets a value that indicates whether the Initialize() method has been called.

Name

获取与此实例关联的名称。Gets the name associated with this instance.

ServiceCertificate

获取或设置用于对 WS-Federation 协议消息进行签名的 X.509 证书。Gets or sets the X.509 certificate used to sign WS-Federation protocol messages.

WsFederationConfiguration

获取或设置 WS-Federation 身份验证模块 (WSFederationAuthenticationModule) 的配置设置。Gets or sets the configuration settings for the WS-Federation Authentication Module (WSFederationAuthenticationModule).

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize()

初始化当前实例。Initializes the current instance.

LoadConfiguration(FederationConfigurationElement)

为来自配置文件的当前实例加载属性。Loads the properties for the current instance from the configuration file. 此方法由从配置设置中初始化新创建的 FederationConfiguration 构造函数调用。This method is called by constructors that initialize the newly created FederationConfiguration from configuration settings.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于