SecurityContextToken Constructor (SecurityToken)
Initializes a new instance of the SecurityContextToken class using the specified security token used to sign the security token request.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim baseToken As SecurityToken
Dim securityContextToken1 As New SecurityContextToken(baseToken)
Syntax
'Declaration
Public Sub New( _
ByVal baseToken As SecurityToken _
)
public SecurityContextToken(
SecurityToken baseToken
);
public:
SecurityContextToken(
SecurityToken^ baseToken
);
public SecurityContextToken(
SecurityToken baseToken
);
public function SecurityContextToken(
baseToken : SecurityToken
);
Parameters
- baseToken
The SecurityToken that digitally signed the security token request. If this is null, a SecurityContextToken will be created without a digitally signed security token.
Remarks
Typically, you do not create a new instance of a SecurityContextToken , but rather you request one from a security token service. For details about requesting a security context token, see How to: Obtain a Security Token From a Security Context Token Service. Use the constructors for this class when you create security token services that issue security tokens deriving from SecurityContextToken .
If the security context token is granted by the security token service, it is returned to the SOAP message sender in a <RequestSecurityTokenResponse> element. The response contains the SecurityContextToken and one or two encrypted keys, depending on whether the Web service to which the SecurityContextToken will be sent (known as the target Web service) and the security token service reside in the same virtual directory. If they do reside in the same virtual directory, there is one encrypted key, which is encrypted using the baseToken parameter. That way only the SOAP message sender can decrypt the key and use it to sign and/or encrypt SOAP messages sent to the target Web service.
This constructor sets the Identifier property to a generated GUID.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
SecurityContextToken Class
SecurityContextToken Members
Microsoft.Web.Services3.Security.Tokens Namespace