Validates the security token request (RST) encapsulated by this instance.
Assembly: Microsoft.IdentityModel (in Microsoft.IdentityModel.dll)
A RequestSecurityToken that represents the request.
request is null.
The KeyType property of the request is not null or one of the constants defined in the Microsoft.IdentityModel.SecurityTokenService.KeyTypes class.
The STS does not support the request token type (based on the value of the TokenType property of the request).
The ValidateRequest method is called from the token issuance pipeline (the Issue method) to validate the incoming RST. The RST is validated against the requirements (policy) of the STS and an appropriate exception is thrown if it is not valid.
The default implementation of the SecurityTokenService class supports only the RST-RSTR pattern and only the Issue binding of the WS-Trust specification (the RequestType property of the request must be set to RequestTypes.Issue). The default implementation of this method enforces these requirements (and others noted in the exceptions section). You can override this method if you must enforce different validation requirements for your custom STS.
For more information about the token issuance pipeline, see the Claims Issuance Pipeline topic.
Target PlatformsWindows 7, Windows Server 2008 R2, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2003 SP2 (32-bit or 64-bit)
Copyright © 2008 by Microsoft Corporation. All rights reserved.