//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.ServiceModel.Security { using System.IdentityModel.Protocols.WSTrust; using System.Security.Claims; using RSTR = System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse; using System.IdentityModel; /// /// Defines the inputs and outputs to the method. /// public class DispatchContext { ClaimsPrincipal principal; string requestAction; WSTrustMessage requestMessage; string responseAction; RSTR responseMessage; SecurityTokenService securityTokenService; string trustNamespace; /// /// The identity of the requestor. /// public ClaimsPrincipal Principal { get { return principal; } set { principal = value; } } /// /// The WS-Addressing action of the request message. /// public string RequestAction { get { return requestAction; } set { requestAction = value; } } /// /// The request message. /// public WSTrustMessage RequestMessage { get { return requestMessage; } set { requestMessage = value; } } /// /// The desired WS-Addressing action of the response message. /// public string ResponseAction { get { return responseAction; } set { responseAction = value; } } /// /// The response message. /// public RSTR ResponseMessage { get { return responseMessage; } set { responseMessage = value; } } /// /// The object which should process . /// public SecurityTokenService SecurityTokenService { get { return securityTokenService; } set { securityTokenService = value; } } /// /// The WS-Trust namespace uri defining the schema for the request and response messages. /// public string TrustNamespace { get { return trustNamespace; } set { trustNamespace = value; } } } }