WSTrustChannel.GetTokenFromResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the security token from the RSTR.
public:
virtual System::IdentityModel::Tokens::SecurityToken ^ GetTokenFromResponse(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request, System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ response);
public virtual System.IdentityModel.Tokens.SecurityToken GetTokenFromResponse (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request, System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse response);
abstract member GetTokenFromResponse : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse -> System.IdentityModel.Tokens.SecurityToken
override this.GetTokenFromResponse : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse -> System.IdentityModel.Tokens.SecurityToken
Public Overridable Function GetTokenFromResponse (request As RequestSecurityToken, response As RequestSecurityTokenResponse) As SecurityToken
Parameters
- request
- RequestSecurityToken
A RequestSecurityToken that represents the request used to ask for the security token.
- response
- RequestSecurityTokenResponse
A RequestSecurityTokenResponse that represents the response containing the security token.
Returns
A SecurityToken that represents the parsed security token.
Exceptions
response
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.