using System;
using System.Collections.Generic;
using System.Text;
namespace DotNetOpenId {
internal enum EncodingType {
None,
///
/// Data to be sent to the OP or RP site by telling the user agent to
/// redirect GET or form POST to a special URL with a payload of arguments.
///
IndirectMessage,
///
/// Provider response data to be sent directly to the Relying Party site,
/// in response to a direct request initiated by the RP
/// (not indirect via the user agent).
/// Key-Value Form encoding will be used.
///
DirectResponse
}
///
/// Classes that implement IEncodable should be either [Serializable] or
/// derive from so that testing can
/// remote across app-domain boundaries to sniff/tamper with messages.
///
internal interface IEncodable {
EncodingType EncodingType { get; }
IDictionary EncodedFields { get; }
///
/// The URL that the user agent should be redirected to
/// in the case of .
/// Does not apply to .
///
Uri RedirectUrl { get; }
}
}