added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Extensibility / Security / DurableIssuedTokenProvider / CS / RSTRSTR / RequestSecurityTokenBase.cs
blobe658da807a2e25f19b881c32bab673a6cf46cacf
1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //-----------------------------------------------------------------------------
4 using System;
6 using System.ServiceModel;
7 using System.ServiceModel.Channels;
9 namespace Microsoft.ServiceModel.Samples
11 public abstract class RequestSecurityTokenBase : BodyWriter
13 // private members
14 private string m_context;
15 private string m_tokenType;
16 private int m_keySize;
17 private EndpointAddress m_appliesTo;
19 // Constructors
20 protected RequestSecurityTokenBase() : this(String.Empty,String.Empty,0, null)
24 protected RequestSecurityTokenBase(string context, string tokenType, int keySize, EndpointAddress appliesTo )
25 : base(true)
27 this.m_context = context;
28 this.m_tokenType = tokenType;
29 this.m_keySize = keySize;
30 this.m_appliesTo = appliesTo;
33 // public properties
34 public string Context
36 get { return m_context; }
37 set { m_context = value; }
40 public string TokenType
42 get { return m_tokenType; }
43 set { m_tokenType = value; }
46 public int KeySize
48 get { return m_keySize; }
49 set { m_keySize = value; }
52 public EndpointAddress AppliesTo
54 get { return m_appliesTo; }
55 set { m_appliesTo = value; }