แก้ไข

แชร์ผ่าน


SecurityTokenService.GetRequestorProofEncryptingCredentials Method

Definition

Gets the requestor's proof encrypting credentials.

protected:
 virtual System::IdentityModel::Tokens::EncryptingCredentials ^ GetRequestorProofEncryptingCredentials(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ request);
protected virtual System.IdentityModel.Tokens.EncryptingCredentials GetRequestorProofEncryptingCredentials (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken request);
abstract member GetRequestorProofEncryptingCredentials : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken -> System.IdentityModel.Tokens.EncryptingCredentials
override this.GetRequestorProofEncryptingCredentials : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken -> System.IdentityModel.Tokens.EncryptingCredentials
Protected Overridable Function GetRequestorProofEncryptingCredentials (request As RequestSecurityToken) As EncryptingCredentials

Parameters

request
RequestSecurityToken

A RequestSecurityToken that represents the incoming token request (RST).

Returns

An EncryptingCredentials object that represents the requestor's encrypting credentials.

Exceptions

request is null.

Remarks

This method is called from the GetProofToken method.

The default implementation does the following. Returns null if there is no encryption token specified in the request (the RequestSecurityToken.ProofEncryption property is null). Otherwise, if it can get the token as an X509SecurityToken, it returns credentials based on that token. If it cannot resolve the token as an X509SecurityToken, a RequestFailedException is thrown.

Applies to