Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RecipientTokenParameters Property

AsymmetricSecurityBindingElement.RecipientTokenParameters Property

Specifies the token definition for the recipient.

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

public SecurityTokenParameters RecipientTokenParameters { get; set; }

Property Value

Type: System.ServiceModel.Security.Tokens.SecurityTokenParameters
A SecurityTokenParameters that holds the token definition.

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

The following code shows an example of referencing this property.

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

abe.SetKeyDerivation(false);

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft