Creates the response (RSTR) that contains the issued token by using the specified request (RST) and security token descriptor.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
protected virtual RequestSecurityTokenResponse GetResponse( RequestSecurityToken request, SecurityTokenDescriptor tokenDescriptor )
- Type: System.IdentityModel.Protocols.WSTrust.RequestSecurityToken
The RST that contains the token request.
- Type: System.IdentityModel.Tokens.SecurityTokenDescriptor
The token descriptor that contains the information to use for the issued token.
Return ValueType: System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
The response (RSTR) or null if a response cannot be created from the specified request and token descriptor. The default implementation returns null if the tokenDescriptor parameter is null.
The method is called as the last step from the token issuance pipeline, which is implemented by the Issue method. It creates and returns the response (RSTR) by using the original incoming request (RST) and the token descriptor that was built up during previous steps in the token issuance pipeline.
The default implementation creates the RSTR by passing the RST specified in the request parameter to the RequestSecurityTokenResponse.RequestSecurityTokenResponse(WSTrustMessage) constructor, invoking the SecurityTokenDescriptor.ApplyTo method on the token descriptor passed into to apply its properties to the newly created RSTR, setting the AppliesTo property on the RSTR by using the AppliesToAddress property on the token descriptor, and finally setting the ReplyTo property on the RSTR according to the following table: