summaryrefslogtreecommitdiffstats
path: root/source/Janrain.OpenId/Server/IEncodable.cs
blob: a4bc2ed15bf0579778aa8ae0152ebc6ee6a1b7c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Text;

namespace Janrain.OpenId.Server
{

    // TODO Move this enum out to it's own file
    public enum EncodingType
    {
        ENCODE_NONE,
        ENCODE_URL,
        ENCODE_KVFORM
    }

    public interface IEncodable
    {
        EncodingType WhichEncoding { get; }

        Uri EncodeToUrl();
        byte[] EncodeToKVForm();
    }
}