SecurityTokenService::GetRequestorProofEncryptingCredentials Method (RequestSecurityToken^)
Gets the requestor's proof encrypting credentials.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
protected: virtual EncryptingCredentials^ GetRequestorProofEncryptingCredentials( RequestSecurityToken^ request )
Parameters
- request
-
Type:
System.IdentityModel.Protocols.WSTrust::RequestSecurityToken^
A RequestSecurityToken that represents the incoming token request (RST).
Return Value
Type: System.IdentityModel.Tokens::EncryptingCredentials^An EncryptingCredentials object that represents the requestor’s encrypting credentials.
| Exception | Condition |
|---|---|
| ArgumentNullException | request is null. |
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.
Available since 4.5