summaryrefslogtreecommitdiffstats
path: root/csharp/examples/runme.cs
blob: e0114b944d7473d8f44c2946dfb61e55deebc750 (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
/* 
 * install lasso then compile with
 *  mcs -g -nologo -pkg:lasso-sharp -out:runme.exe runme.cs 
 */

using System;

public class runme
{
    static void Main() 
    {
	lasso.lasso.init();

	lasso.Server server = new lasso.Server(
			"../../tests/data/sp1-la/metadata.xml",
			"../../tests/data/sp1-la/private-key-raw.pem",
			null,
			"../../tests/data/sp1-la/certificate.pem");
	server.addProvider(lasso.LassoProviderRole.PROVIDER_ROLE_SP,
			"../../tests/data/idp1-la/metadata.xml",
			"../../tests/data/idp1-la/public-key.pem",
			"../../tests/data/ca1-la/certificate.pem");
	Console.WriteLine(server.dump());

        lasso.lasso.shutdown();
    }
}