Επεξεργασία

Κοινή χρήση μέσω


WsFederationConfiguration Constructors

Definition

Initializes a new instance of the WsFederationConfiguration class.

Overloads

WsFederationConfiguration(WSFederationElement)

Initializes a new instance of the WsFederationConfiguration class from the specified <wsFederation> element.

WsFederationConfiguration(String, String)

Initializes a new instance of the WsFederationConfiguration class by using the specified issuer and realm.

WsFederationConfiguration(WSFederationElement)

Initializes a new instance of the WsFederationConfiguration class from the specified <wsFederation> element.

public:
 WsFederationConfiguration(System::IdentityModel::Services::Configuration::WSFederationElement ^ federationElement);
public WsFederationConfiguration (System.IdentityModel.Services.Configuration.WSFederationElement federationElement);
new System.IdentityModel.Services.Configuration.WsFederationConfiguration : System.IdentityModel.Services.Configuration.WSFederationElement -> System.IdentityModel.Services.Configuration.WsFederationConfiguration
Public Sub New (federationElement As WSFederationElement)

Parameters

federationElement
WSFederationElement

The <wsFederation> element from which to initialize the new instance.

Remarks

The properties of the new instance are initialized according to the settings of the specified <wsFederation> element.

Some validation is performed on the WSFederationElement object specified by federationElement. Both the WSFederationElement.Issuer property and the WSFederationElement.Realm property must specify non-null, non-empty values. If the WSFederationElement.RequireHttps property is set true, the WSFederationElement.Issuer property must specify a URI that has an HTTPS scheme. The WSFederationElement.Freshness property cannot be negative. If any of these conditions are not met, an exception is thrown.

See also

Applies to

WsFederationConfiguration(String, String)

Initializes a new instance of the WsFederationConfiguration class by using the specified issuer and realm.

public:
 WsFederationConfiguration(System::String ^ issuer, System::String ^ realm);
public WsFederationConfiguration (string issuer, string realm);
new System.IdentityModel.Services.Configuration.WsFederationConfiguration : string * string -> System.IdentityModel.Services.Configuration.WsFederationConfiguration
Public Sub New (issuer As String, realm As String)

Parameters

issuer
String

A string that contains the URI of the issuer to be used by the WS-Federation Authentication Module (WSFAM).

realm
String

A string that contains the URI of the requesting realm to be used by the WSFAM.

Exceptions

issuer is null.

-or-

realm is null.

Remarks

The Issuer and Realm properties are initialized according to the issuer and realm parameters. All other properties are initialized to their default values.

Applies to