Share via


SecurityTokenServiceClient.VerifyResponseConfidentiality Method

Verifies the response from the security token service has encrypted the appropriate element(s).

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

Usage

'Usage
Public Class securityTokenServiceClientImplementation
    Inherits SecurityTokenServiceClient
        Protected Overrides Sub VerifyResponseConfidentiality(request As SecurityTokenMessage, _
            response As RequestSecurityTokenResponse)
            MyBase.VerifyResponseConfidentiality(request, response)
        End Sub
End Class

Syntax

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

Parameters

Exceptions

Exception type Condition
System.ArgumentNullException

request is null.

-or-

response is null.

TrustFault

response contains an <Entropy> element, which contains the requested entropy value, but the request does not contain an <Entropy> element.

-or-

response contains an entropy value that is less than 16 bytes long.

-or-

response contains an entropy value that is not encrypted using the entropy value sent in the request.

-or-

response contains a <ProofToken> element, which contains the requested security token that is not encrypted using the security token that signed the request.

Remarks

The VerifyResponsePolicy method calls the VerifyResponseConfidentiality 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

SecurityTokenServiceClient Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityTokenServiceClient Members