Condividi tramite


SecurityContextTokenService Class

Represents a security token service that issues SecurityContextToken security tokens.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim securityContextTokenService1 As New SecurityContextTokenService()

Syntax

'Declaration
Public Class SecurityContextTokenService
    Inherits SecurityTokenService
public class SecurityContextTokenService : SecurityTokenService
public ref class SecurityContextTokenService : SecurityTokenService
public class SecurityContextTokenService extends SecurityTokenService
public class SecurityContextTokenService extends SecurityTokenService

Remarks

Use this class to issue SecurityContextToken security tokens.

The SecurityContextTokenService security token service handles security token requests that contain <Action> SOAP headers with the value https://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/SCT .

The SecurityContextTokenService class has two overloaded IssueSecurityContextTokenRequest methods for handling security token requests. One method, which takes a RequestSecurityToken parameter is called when a security token request is received within a <RequestSecurityToken> element. If the request is valid, the method issues a security token. The other method, which takes a RequestSecurityTokenResponse parameter, is called when a security token request is received within a <RequestSecurityTokenResponse> element. Note that the SecurityContextTokenService security token service does not support this type of request and therefore a TrustFault exception is thrown.

When you want to issue security tokens other than SecurityContextToken security tokens, you must derive a class from the SecurityTokenService class to build your security token service. For more details about issuing custom security tokens, see Issuing Security Tokens.

Inheritance Hierarchy

System.Object
   Microsoft.Web.Services3.Messaging.SoapPort
     Microsoft.Web.Services3.Messaging.SoapReceiver
       Microsoft.Web.Services3.Messaging.SoapService
         Microsoft.Web.Services3.Security.SecurityTokenService
          Microsoft.Web.Services3.Security.SecurityContextTokenService

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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

SecurityContextTokenService Members
Microsoft.Web.Services3.Security Namespace
IssueSecurityToken
SecurityContextTokenServiceClient

Other Resources

Issuing Security Tokens