Share via


SecurityTokenService.VerifyRequestIntegrity Method

Verifies that the request from the security token service has signed the appropriate elements.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Public Class securityTokenServiceImplementation
    Inherits SecurityTokenService
        Protected Overrides Function VerifyRequestIntegrity(request As SecurityTokenMessage)
            MyBase.VerifyRequestIntegrity(request)
        End Function
End Class

Syntax

'Declaration
Protected Overridable Function VerifyRequestIntegrity( _
    ByVal request As SecurityTokenMessage _
) As SecurityToken
protected virtual SecurityToken VerifyRequestIntegrity(
    SecurityTokenMessage request
);
protected: SecurityToken^ VerifyRequestIntegrity(
    SecurityTokenMessage^ request
);
protected SecurityToken VerifyRequestIntegrity(
    SecurityTokenMessage request
);
protected function VerifyRequestIntegrity(
     request : SecurityTokenMessage
) : SecurityToken;

Parameters

Return Value

A SecurityToken that represents the client's identity.

Exceptions

Exception type Condition
System.ArgumentNullException

request is null.

TrustFault

The request's <Body> element, timestamp, or WS-Addressing headers are not signed.

-or-

The <Body> element of request is signed more than once.

-or-

request does not contain a timestamp.

-or-

The <Body> element of request is not signed by the base token or a DerivedKeyToken security token derived from the base token.

Remarks

The VerifyRequestPolicy method calls the VerifyRequestIntegrity method.

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

SecurityTokenService Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityTokenService Members