| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- //------------------------------------------------------------
- // 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;
- /// <summary>
- /// Defines the inputs and outputs to the <see cref="WSTrustServiceContract.DispatchRequest"/> method.
- /// </summary>
- public class DispatchContext
- {
- ClaimsPrincipal principal;
- string requestAction;
- WSTrustMessage requestMessage;
- string responseAction;
- RSTR responseMessage;
- SecurityTokenService securityTokenService;
- string trustNamespace;
- /// <summary>
- /// The identity of the requestor.
- /// </summary>
- public ClaimsPrincipal Principal
- {
- get { return principal; }
- set { principal = value; }
- }
- /// <summary>
- /// The WS-Addressing action of the request message.
- /// </summary>
- public string RequestAction
- {
- get { return requestAction; }
- set { requestAction = value; }
- }
- /// <summary>
- /// The request message.
- /// </summary>
- public WSTrustMessage RequestMessage
- {
- get { return requestMessage; }
- set { requestMessage = value; }
- }
- /// <summary>
- /// The desired WS-Addressing action of the response message.
- /// </summary>
- public string ResponseAction
- {
- get { return responseAction; }
- set { responseAction = value; }
- }
- /// <summary>
- /// The response message.
- /// </summary>
- public RSTR ResponseMessage
- {
- get { return responseMessage; }
- set { responseMessage = value; }
- }
- /// <summary>
- /// The <see cref="SecurityTokenService"/> object which should process <see cref="RequestMessage"/>.
- /// </summary>
- public SecurityTokenService SecurityTokenService
- {
- get { return securityTokenService; }
- set { securityTokenService = value; }
- }
- /// <summary>
- /// The WS-Trust namespace uri defining the schema for the request and response messages.
- /// </summary>
- public string TrustNamespace
- {
- get { return trustNamespace; }
- set { trustNamespace = value; }
- }
- }
- }
|