SecurityTokenHandler.TraceTokenValidationFailure Method (SecurityToken, String)

.NET Framework (current version)
 

Traces the failure event during the validation of security tokens when tracing is enabled.

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

protected void TraceTokenValidationFailure(
	SecurityToken token,
	string errorMessage
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The security token that is being validated.

errorMessage
Type: System.String

The message to write to the trace.

This method should be called from the ValidateToken method when validation of the token fails.

.NET Framework
Available since 4.5
Return to top
Show: