FederatedMessageSecurityOverHttp.AlgorithmSuite Property


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

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public SecurityAlgorithmSuite AlgorithmSuite { get; set; }

Exception Condition

The value is null.

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.

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

// 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;

.NET Framework
Available since 3.0
Return to top