1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //-----------------------------------------------------------------------------
6 using System
.ServiceModel
;
7 using System
.ServiceModel
.Channels
;
9 namespace Microsoft
.ServiceModel
.Samples
11 public abstract class RequestSecurityTokenBase
: BodyWriter
14 private string m_context
;
15 private string m_tokenType
;
16 private int m_keySize
;
17 private EndpointAddress m_appliesTo
;
20 protected RequestSecurityTokenBase() : this(String
.Empty
,String
.Empty
,0, null)
24 protected RequestSecurityTokenBase(string context
, string tokenType
, int keySize
, EndpointAddress appliesTo
)
27 this.m_context
= context
;
28 this.m_tokenType
= tokenType
;
29 this.m_keySize
= keySize
;
30 this.m_appliesTo
= appliesTo
;
36 get { return m_context; }
37 set { m_context = value; }
40 public string TokenType
42 get { return m_tokenType; }
43 set { m_tokenType = value; }
48 get { return m_keySize; }
49 set { m_keySize = value; }
52 public EndpointAddress AppliesTo
54 get { return m_appliesTo; }
55 set { m_appliesTo = value; }