FederatedMessageSecurityOverHttp.AlgorithmSuite Property

Definition

Gets or sets the algorithm suite that specifies the message encryption and key-wrap algorithms.

C#
public System.ServiceModel.Security.SecurityAlgorithmSuite AlgorithmSuite { get; set; }

Property Value

The algorithm suite that specifies the message encryption and key-wrap algorithms. The default is Basic256.

Exceptions

The value is null.

Examples

The following code shows how to access this property from the binding, and set it.

C#
// This method creates a WSFederationHttpBinding.
public static WSFederationHttpBinding
    CreateWSFederationHttpBinding(bool isClient)
{
  // Create an instance of the WSFederationHttpBinding.
  WSFederationHttpBinding b = new WSFederationHttpBinding();

  // Set the security mode to Message.
  b.Security.Mode = WSFederationHttpSecurityMode.Message;

  // Set the Algorithm Suite to Basic256Rsa15.
  b.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Rsa15;

Remarks

The SecurityAlgorithmSuite object that is returned contains numerous properties that specify security algorithms to use in specific conditions. It also describes various security capabilities of the service.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1