SecurityTokenHandler.TraceTokenValidationFailure Method

Definition

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

protected void TraceTokenValidationFailure (System.IdentityModel.Tokens.SecurityToken token, string errorMessage);

Parameters

token
SecurityToken

The security token that is being validated.

errorMessage
String

The message to write to the trace.

Remarks

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

Applies to

Product Versies
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1