Share via


SecurityContextTokenService.IssueSecurityToken Method

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

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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
);
protected 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-

The configuration file for the security token service does not contain a <serverToken> Element element (ResponseSigningToken property is null).

-or-

RequestSigningToken does not support the encryption of SOAP messages and the request contains a <ProofToken> element.

-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.

System.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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SecurityContextTokenService Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityContextTokenService Members