SecurityBindingElement.DefaultAlgorithmSuite Property

Definition

Gets or sets the message encryption and key-wrap algorithms.

public System.ServiceModel.Security.SecurityAlgorithmSuite DefaultAlgorithmSuite { get; set; }

Property Value

The SecurityAlgorithmSuite object that represents the message encryption and key-wrap algorithms.

Exceptions

The value is null on a set.

Examples

The following code shows how to set this property.

SymmetricSecurityBindingElement b =
    SecurityBindingElement.
    CreateAnonymousForCertificateBindingElement();

BindingElementCollection outputBindings =
    new BindingElementCollection();

b.DefaultAlgorithmSuite = SecurityAlgorithmSuite.Basic128;
b.MessageProtectionOrder =
    MessageProtectionOrder.SignBeforeEncrypt;
b.ProtectionTokenParameters =
    new KerberosSecurityTokenParameters();

Remarks

The SecurityAlgorithmSuite object that contains numerous properties that specify security algorithms that are to be used for signing, encryption, key derivation, and other cryptographic operations. It also controls the key sizes that are used for doing these cryptographic operations.

Applies to

Product Versions
.NET 8 (package-provided)
.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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)