Compartilhar via


SecurityContextTokenServiceClient.RetrieveSecurityContextToken Method

Extracts the SecurityContextToken from the response to a security token request.

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

Usage

'Usage
Public Class securityContextTokenServiceClientImplementation
    Inherits SecurityContextTokenServiceClient
        Protected Overrides Function RetrieveSecurityContextToken(request As RequestSecurityToken, _
            response As RequestSecurityTokenResponse)
            MyBase.RetrieveSecurityContextToken(request, response)
        End Function
End Class

Syntax

'Declaration
Protected Overridable Function RetrieveSecurityContextToken( _
    ByVal request As RequestSecurityToken, _
    ByVal response As RequestSecurityTokenResponse _
) As SecurityContextToken
protected virtual SecurityContextToken RetrieveSecurityContextToken(
    RequestSecurityToken request, 
    RequestSecurityTokenResponse response
);
protected:
virtual SecurityContextToken^ RetrieveSecurityContextToken(
    RequestSecurityToken^ request,
    RequestSecurityTokenResponse^ response
);
protected virtual SecurityContextToken RetrieveSecurityContextToken(
    RequestSecurityToken request, 
    RequestSecurityTokenResponse response
);
protected function RetrieveSecurityContextToken(
     request : RequestSecurityToken, 
     response : RequestSecurityTokenResponse
) : SecurityContextToken;

Parameters

Return Value

The SecurityContextToken returned from the security token service.

Remarks

The RetrieveSecurityContextToken method caches the SecurityContextToken security token.

The RequestSecurityContextToken method calls the RetrieveSecurityContextToken method to extract the SecurityContextToken from the response to the security token request. If an entropy value is returned from the security token service, the key for the SecurityContextToken is generated using that entropy value.

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

SecurityContextTokenServiceClient Class
SecurityContextTokenServiceClient Members
Microsoft.Web.Services3.Security Namespace