blob: f608e528c12e7391ae853bca1c97fc50d5bc2b27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//-----------------------------------------------------------------------
// <copyright file="SigningBindingElementBaseContract.cs" company="Outercurve Foundation">
// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuth.ChannelElements {
using System;
using System.Diagnostics.Contracts;
using DotNetOpenAuth.Messaging;
/// <summary>
/// Code Contract for the <see cref="SigningBindingElementBase"/> class.
/// </summary>
[ContractClassFor(typeof(SigningBindingElementBase))]
internal abstract class SigningBindingElementBaseContract : SigningBindingElementBase {
/// <summary>
/// Prevents a default instance of the SigningBindingElementBaseContract class from being created.
/// </summary>
private SigningBindingElementBaseContract()
: base(string.Empty) {
}
/// <summary>
/// Clones this instance.
/// </summary>
/// <returns>A new instance of the binding element.</returns>
/// <remarks>
/// Implementations of this method need not clone the SignatureVerificationCallback member, as the
/// <see cref="SigningBindingElementBase"/> class does this.
/// </remarks>
protected override ITamperProtectionChannelBindingElement Clone() {
throw new NotImplementedException();
}
/// <summary>
/// Calculates a signature for a given message.
/// </summary>
/// <param name="message">The message to sign.</param>
/// <returns>The signature for the message.</returns>
protected override string GetSignature(ITamperResistantOAuthMessage message) {
Requires.NotNull(message, "message");
Requires.ValidState(this.Channel != null);
throw new NotImplementedException();
}
}
}
|