SecurityTokenHandler.TraceTokenValidationFailure Method

.NET Framework 4.6 and 4.5

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


Type: System.IdentityModel.Tokens.SecurityToken

The security token that is being validated.

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

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft