AsymmetricSecurityBindingElement.InitiatorTokenParameters Property

Definition

Specifies the token definition for the initiator.

C#
public System.ServiceModel.Security.Tokens.SecurityTokenParameters InitiatorTokenParameters { get; set; }

Property Value

A SecurityTokenParameters that holds the token definition.

Examples

The following code shows an example of referencing this property.

C#
AsymmetricSecurityBindingElement abe =
    (AsymmetricSecurityBindingElement)SecurityBindingElement.
    CreateMutualCertificateBindingElement(
    MessageSecurityVersion.
    WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);

abe.SetKeyDerivation(false);

X509SecurityTokenParameters istp =
   abe.InitiatorTokenParameters as X509SecurityTokenParameters;
if (istp != null)
{
    istp.X509ReferenceStyle =
    X509KeyIdentifierClauseType.IssuerSerial;
}

Remarks

This property gets and sets a class that contains the properties for the token of the party that initiates communication.

Applies to

Produkt Versiounen
.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