SecurityTokenService.GetProofToken Method (RequestSecurityToken, Scope)

.NET Framework (current version)

Gets the proof token to be included in the response (RSTR).

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual ProofDescriptor GetProofToken(
	RequestSecurityToken request,
	Scope scope


Type: System.IdentityModel.Protocols.WSTrust.RequestSecurityToken

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

Type: System.IdentityModel.Scope

The Scope instance that encapsulates information about the relying party.

Return Value

Type: System.IdentityModel.Tokens.ProofDescriptor

A ProofDescriptor that represents the newly created proof descriptor. The proof descriptor can be an asymmetric proof descriptor, a symmetric proof descriptor, or null in the bearer token case.

Exception Condition

request is null.


scope is null.

This method is called from the default token issuance pipeline implemented in the Issue method.

The default implementation returns a proof descriptor or throws an appropriate exception.

.NET Framework
Available since 4.5
Return to top