Validation Result Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains artifacts obtained when a SecurityToken is validated. A SecurityTokenHandler returns an instance that captures the results of validating a token.
public class TokenValidationResult
type TokenValidationResult = class
Public Class TokenValidationResult
Creates an instance of TokenValidationResult
The Dictionary<TKey,TValue> created from the validated security token.
The ClaimsIdentity created from the validated security token.
Gets or sets the Exception that occurred during validation.
Gets or sets the issuer that was found in the token.
True if the token was successfully validated, false otherwise.
Gets or sets the IDictionary<TKey,TValue> that contains a collection of custom key/value pairs. This allows addition of data that could be used in custom scenarios. This uses Ordinal for case-sensitive comparison of keys.
Gets or sets the SecurityToken that was validated.
Gets or sets the CallContext that contains call information.
The SecurityToken to be returned when validation fails.
Gets or sets the token type of the SecurityToken that was validated. When a TypeValidator is registered, the type returned by the delegate is used to populate this property. Otherwise, the type is resolved from the token itself, if available (e.g for a JSON Web Token, from the "typ" header).