Share via


SecurityTokenServiceClient.EnforceRequestPolicy Method

Encrypts the requestor's entropy value, signs the request, and ensures the AppliesTo property is not null.

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

Usage

'Usage
Public Class securityTokenServiceClientImplementation
    Inherits SecurityTokenServiceClient
        Protected Overrides Sub EnforceRequestPolicy(request As SecurityTokenMessage)
            MyBase.EnforceRequestPolicy(request)
        End Sub
End Class

Syntax

'Declaration
Protected Overridable Sub EnforceRequestPolicy( _
    ByVal request As SecurityTokenMessage _
)
protected virtual void EnforceRequestPolicy(
    SecurityTokenMessage request
);
protected: Void EnforceRequestPolicy(
    SecurityTokenMessage^ request
);
protected void EnforceRequestPolicy(
    SecurityTokenMessage request
);
protected function EnforceRequestPolicy(
     request : SecurityTokenMessage
);

Parameters

  • request
    A SecurityTokenMessage that represents the request being made to the security token service.

Exceptions

Exception type Condition
System.ArgumentNullException

request is null.

Remarks

The RequestSecurityToken method calls the EnforceRequestPolicy method.

The EnforceRequestPolicy method calls the EnforceRequestConfidentiality and EnforceRequestIntegrity methods.

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

SecurityTokenServiceClient Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityTokenServiceClient Members