blob: e04a3322b1304894bc5c129d1c98c6549c1f7fd5 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//-----------------------------------------------------------------------
// <copyright file="AssociationContract.cs" company="Outercurve Foundation">
// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OpenId {
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using DotNetOpenAuth.Configuration;
using DotNetOpenAuth.Messaging;
/// <summary>
/// Code contract for the <see cref="Association"/> class.
/// </summary>
[ContractClassFor(typeof(Association))]
internal abstract class AssociationContract : Association {
/// <summary>
/// Prevents a default instance of the <see cref="AssociationContract"/> class from being created.
/// </summary>
private AssociationContract()
: base(null, null, TimeSpan.Zero, DateTime.Now) {
}
/// <summary>
/// Gets the length (in bits) of the hash this association creates when signing.
/// </summary>
public override int HashBitLength {
get {
Contract.Ensures(Contract.Result<int>() > 0);
throw new NotImplementedException();
}
}
/// <summary>
/// The string to pass as the assoc_type value in the OpenID protocol.
/// </summary>
/// <param name="protocol">The protocol version of the message that the assoc_type value will be included in.</param>
/// <returns>
/// The value that should be used for the openid.assoc_type parameter.
/// </returns>
[Pure]
internal override string GetAssociationType(Protocol protocol) {
Requires.NotNull(protocol, "protocol");
throw new NotImplementedException();
}
/// <summary>
/// Returns the specific hash algorithm used for message signing.
/// </summary>
/// <returns>
/// The hash algorithm used for message signing.
/// </returns>
[Pure]
protected override HashAlgorithm CreateHasher() {
Contract.Ensures(Contract.Result<HashAlgorithm>() != null);
throw new NotImplementedException();
}
}
}
|