1 ' Copyright (c) Microsoft Corporation. All Rights Reserved.
5 Imports System
.Runtime
.InteropServices
7 Imports System
.ServiceModel
8 Imports System
.ServiceModel
.Channels
10 Namespace Microsoft
.ServiceModel
.Samples
.Federation
13 ''' abstract base class containing properties that are shared by RST and RSTR classes
16 Public MustInherit Class RequestSecurityTokenBase
20 Private m_context
As String
21 Private m_tokenType
As String
22 Private m_keySize
As Integer
23 Private m_appliesTo
As EndpointAddress
27 ''' Default constructor
31 Me.New([String].Empty
, [String].Empty
, 0, Nothing)
36 ''' Parameterized constructor
38 ''' <param name="context">The value of the wst:RequestSecurityToken/@Context attribute in the request message, if any</param>
39 ''' <param name="tokenType">The content of the wst:RequestSecurityToken/wst:TokenType element in the request message, if any</param>
40 ''' <param name="keySize">The content of the wst:RequestSecurityToken/wst:KeySize element in the request message, if any</param>
41 ''' <param name="appliesTo">An EndpointRefernece corresponding to the content of the wst:RequestSecurityToken/wsp:AppliesTo element in the request message, if any</param>
42 Protected
Sub New(ByVal context
As String, ByVal tokenType
As String, ByVal keySize
As Integer, ByVal appliesTo
As EndpointAddress
)
45 Me.m_context
= context
46 Me.m_tokenType
= tokenType
47 Me.m_keySize
= keySize
48 Me.m_appliesTo
= appliesTo
55 ''' Context for the RST/RSTR exchange.
56 ''' The value of the wst:RequestSecurityToken/@Context attribute from RequestSecurityToken messages
57 ''' The value of the wst:RequestSecurityTokenResponse/@Context attribute from RequestSecurityTokenResponse messages
59 Public Property Context() As String
66 Set(ByVal value
As String)
75 ''' The type of token requested or returned.
76 ''' The value of the wst:RequestSecurityToken/wst:TokenType element from RequestSecurityToken messages
77 ''' The value of the wst:RequestSecurityTokenResponse/wst:TokenType element from RequestSecurityTokenResponse messages
79 Public Property TokenType() As String
86 Set(ByVal value
As String)
95 ''' The size of the requested proof key
96 ''' The value of the wst:RequestSecurityToken/wst:KeySize element from RequestSecurityToken messages
97 ''' The value of the wst:RequestSecurityTokenResponse/wst:KeySize element from RequestSecurityTokenResponse messages
99 Public Property KeySize() As Integer
106 Set(ByVal value
As Integer)
115 ''' The EndpointAddress a token is being requested or returned for
116 ''' The content of the wst:RequestSecurityToken/wsp:AppliesTo element from RequestSecurityToken messages
117 ''' The content of the wst:RequestSecurityTokenResponse/wsp:AppliesTo element from RequestSecurityTokenResponse messages
118 ''' </summary>public int KeySize
119 Public Property AppliesTo() As EndpointAddress
126 Set(ByVal value
As EndpointAddress
)