IWSTrustFeb2005SyncContract.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Security
  5. {
  6. using System.IdentityModel.Protocols.WSTrust;
  7. using System.ServiceModel;
  8. using System.ServiceModel.Channels;
  9. /// <summary>
  10. /// Defines the ServiceContract interface for a Trust Feb 2005 protocol
  11. /// </summary>
  12. [ServiceContract( Name = WSTrustServiceContractConstants.Contracts.IWSTrustFeb2005Sync, Namespace = WSTrustServiceContractConstants.Namespace )]
  13. public interface IWSTrustFeb2005SyncContract
  14. {
  15. /// <summary>
  16. /// Definiton of a RST/Cancel method for WS-Trut Feb 2005
  17. /// </summary>
  18. /// <param name="message">The Request Message that contains a RST.</param>
  19. /// <returns>Response message containing the RSTR.</returns>
  20. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005Cancel, Action = WSTrustFeb2005Constants.Actions.Cancel, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
  21. Message ProcessTrustFeb2005Cancel( Message message );
  22. /// <summary>
  23. /// Definiton of a RST/Issue method for WS-Trut Feb 2005
  24. /// </summary>
  25. /// <param name="message">The Request Message that contains a RST.</param>
  26. /// <returns>Response message containing the RSTR.</returns>
  27. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005Issue, Action = WSTrustFeb2005Constants.Actions.Issue, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
  28. Message ProcessTrustFeb2005Issue( Message message );
  29. /// <summary>
  30. /// Definiton of a RST/Renew method for WS-Trut Feb 2005
  31. /// </summary>
  32. /// <param name="message">The Request Message that contains a RST.</param>
  33. /// <returns>Response message containing the RSTR.</returns>
  34. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005Renew, Action = WSTrustFeb2005Constants.Actions.Renew, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
  35. Message ProcessTrustFeb2005Renew( Message message );
  36. /// <summary>
  37. /// Definiton of a RST/Validate method for WS-Trut Feb 2005
  38. /// </summary>
  39. /// <param name="message">The Request Message that contains a RST.</param>
  40. /// <returns>Response message containing the RSTR.</returns>
  41. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005Validate, Action = WSTrustFeb2005Constants.Actions.Validate, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
  42. Message ProcessTrustFeb2005Validate( Message message );
  43. /// <summary>
  44. /// Definiton of a RSTR/Cancel method for WS-Trut Feb 2005
  45. /// </summary>
  46. /// <param name="message">The Request Message that contains a RST.</param>
  47. /// <returns>Response message containing the RSTR.</returns>
  48. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005CancelResponse, Action = WSTrustFeb2005Constants.Actions.CancelResponse, ReplyAction = WSTrustFeb2005Constants.Actions.CancelResponse )]
  49. Message ProcessTrustFeb2005CancelResponse( Message message );
  50. /// <summary>
  51. /// Definiton of a RSTR/Issue method for WS-Trut Feb 2005
  52. /// </summary>
  53. /// <param name="message">The Request Message that contains a RST.</param>
  54. /// <returns>Response message containing the RSTR.</returns>
  55. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005IssueResponse, Action = WSTrustFeb2005Constants.Actions.IssueResponse, ReplyAction = WSTrustFeb2005Constants.Actions.IssueResponse )]
  56. Message ProcessTrustFeb2005IssueResponse( Message message );
  57. /// <summary>
  58. /// Definiton of a RSTR/Renew method for WS-Trut Feb 2005
  59. /// </summary>
  60. /// <param name="message">The Request Message that contains a RST.</param>
  61. /// <returns>Response message containing the RSTR.</returns>
  62. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005RenewResponse, Action = WSTrustFeb2005Constants.Actions.RenewResponse, ReplyAction = WSTrustFeb2005Constants.Actions.RenewResponse )]
  63. Message ProcessTrustFeb2005RenewResponse( Message message );
  64. /// <summary>
  65. /// Definiton of a RSTR/Validate method for WS-Trut Feb 2005
  66. /// </summary>
  67. /// <param name="message">The Request Message that contains a RST.</param>
  68. /// <returns>Response message containing the RSTR.</returns>
  69. [OperationContract( Name = WSTrustServiceContractConstants.Operations.TrustFeb2005ValidateResponse, Action = WSTrustFeb2005Constants.Actions.ValidateResponse, ReplyAction = WSTrustFeb2005Constants.Actions.ValidateResponse )]
  70. Message ProcessTrustFeb2005ValidateResponse( Message message );
  71. }
  72. }