Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​IdentityModel.​Tokens.​TokenValidationResult
Assembly: Microsoft.IdentityModel.Tokens
Inheritance: object → TokenValidationResult
Contains artifacts obtained when a SecurityToken is validated. A SecurityTokenHandler returns an instance that captures the results of validating a token.
Properties
public
System.​Collections.​Generic.​IDictionary<​string, object>
Claims
The <see cref="T:System.Collections.Generic.Dictionary`2" /> created from the validated security token.
ClaimsIdentity
The <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationResult.ClaimsIdentity" /> created from the validated security token.
Exception
Gets or sets the <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationResult.Exception" /> that occurred during validation.
public
string
Issuer
Gets or sets the issuer that was found in the token.
public
bool
IsValid
True if the token was successfully validated, false otherwise.
public
System.​Collections.​Generic.​IDictionary<​string, object>
PropertyBag
Gets or sets the <see cref="T:System.Collections.Generic.IDictionary`2" /> that contains a collection of custom key/value pairs. This allows addition of data that could be used in custom scenarios. This uses <see cref="P:System.StringComparer.Ordinal" /> for case-sensitive comparison of keys.
public
SecurityToken
SecurityToken
Gets or sets the <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationResult.SecurityToken" /> that was validated.
public
SecurityToken
TokenOnFailedValidation
The <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationResult.SecurityToken" /> to be returned when validation fails.
public
CallContext
TokenContext
Gets or sets the <see cref="T:Microsoft.IdentityModel.Tokens.CallContext" /> that contains call information.
public
string
TokenType
Gets or sets the token type of the <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationResult.SecurityToken" /> that was validated.
When a <see cref="P:Microsoft.IdentityModel.Tokens.TokenValidationParameters.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).
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object