Condividi tramite


SecurityContextTokenService.IssueSecurityToken Method

Handles an incoming security token request to issue a SecurityContextToken security token.

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

Usage

'Usage
Public Class securityContextTokenServiceImplementation
    Inherits SecurityContextTokenService
        Protected Overrides Function IssueSecurityToken(request As SecurityTokenMessage)
            MyBase.IssueSecurityToken(request)
        End Function
End Class

Syntax

'Declaration
Protected Overrides Function IssueSecurityToken( _
    ByVal request As SecurityTokenMessage _
) As RequestSecurityTokenResponse
protected override RequestSecurityTokenResponse IssueSecurityToken(
    SecurityTokenMessage request
);
protected:
virtual RequestSecurityTokenResponse^ IssueSecurityToken(
    SecurityTokenMessage^ request
) override;
protected override RequestSecurityTokenResponse IssueSecurityToken(
    SecurityTokenMessage request
);
protected override function IssueSecurityToken(
     request : SecurityTokenMessage
) : RequestSecurityTokenResponse;

Parameters

Return Value

A RequestSecurityTokenResponse that contains the details of the response.

Exceptions

Exception type Condition
TrustFault

request is not a RequestSecurityToken .

-or-

The token type being requested is not a SecurityContextToken .

-or-

request contains an <Entropy> element with an entropy value less than 16 bytes long.

-or-

request contains an <Entropy> element and the entropy value is not encrypted.

ArgumentNullException

request is null.

Remarks

If the request is valid, the IssueSecurityToken method creates a new instance of RequestSecurityTokenResponse to issue a SecurityContextToken security token.

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 Class
SecurityContextTokenService Members
Microsoft.Web.Services3.Security Namespace