blob: fb1ef9664985d1e3b159876a725fe8d4b4b76ec8 (
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
|
using System;
using System.Collections.Generic;
using System.Text;
namespace DotNetOAuth {
/// <summary>
/// The interface that classes must implement to be serialized/deserialized
/// as OAuth messages.
/// </summary>
interface IProtocolMessage {
/// <summary>
/// Gets whether this is a direct or indirect message.
/// </summary>
MessageTransport Transport { get; }
/// <summary>
/// Checks the message state for conformity to the protocol specification
/// and throws an exception if the message is invalid.
/// </summary>
/// <remarks>
/// <para>Some messages have required fields, or combinations of fields that must relate to each other
/// in specialized ways. After deserializing a message, this method checks the state of the
/// message to see if it conforms to the protocol.</para>
/// <para>Note that this property should <i>not</i> check signatures or perform any state checks
/// outside this scope of this particular message.</para>
/// </remarks>
/// <exception cref="ProtocolException">Thrown if the message is invalid.</exception>
void EnsureValidMessage();
}
}
|