You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,88 @@
|
||||
//------------------------------------------------------------
|
||||
// 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; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user