다음을 통해 공유


AsymmetricSecurityBindingElement.RecipientTokenParameters 속성

정의

수신자에 대한 토큰 정의를 지정합니다.

public:
 property System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ RecipientTokenParameters { System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ get(); void set(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ value); };
public System.ServiceModel.Security.Tokens.SecurityTokenParameters RecipientTokenParameters { get; set; }
member this.RecipientTokenParameters : System.ServiceModel.Security.Tokens.SecurityTokenParameters with get, set
Public Property RecipientTokenParameters As SecurityTokenParameters

속성 값

토큰 정의를 보유하는 SecurityTokenParameters입니다.

예제

다음 코드에서는 이 속성을 참조하는 예제를 보여 줍니다.

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;
}
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)

abe.SetKeyDerivation(False)

Dim istp As X509SecurityTokenParameters = TryCast(abe.InitiatorTokenParameters, X509SecurityTokenParameters)
If istp IsNot Nothing Then
    istp.X509ReferenceStyle = X509KeyIdentifierClauseType.IssuerSerial
End If
Dim rstp As X509SecurityTokenParameters = TryCast(abe.RecipientTokenParameters, X509SecurityTokenParameters)
If rstp IsNot Nothing Then
    rstp.X509ReferenceStyle = X509KeyIdentifierClauseType.IssuerSerial
End If

설명

이 속성은 통신을 수신하는 측의 토큰에 대한 속성을 포함하는 클래스를 가져오거나 설정합니다.

적용 대상