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
)

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

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