JwtFormat Class
Signs and validates JSON Web Tokens.
Namespace: Microsoft.Owin.Security.Jwt
Assembly: Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)
Inheritance Hierarchy
System.Object
Microsoft.Owin.Security.Jwt.JwtFormat
Syntax
public class JwtFormat : ISecureDataFormat<AuthenticationTicket>
public ref class JwtFormat : ISecureDataFormat<AuthenticationTicket^>
type JwtFormat =
class
interface ISecureDataFormat<AuthenticationTicket>
end
Public Class JwtFormat
Implements ISecureDataFormat(Of AuthenticationTicket)
Constructors
Name | Description | |
---|---|---|
JwtFormat() | Creates a new JwtFormat with TokenHandler and UseTokenLifetime enabled by default. |
|
JwtFormat(IEnumerable<String>, IEnumerable<IIssuerSecurityTokenProvider>) | Initializes a new instance of the JwtFormat class. |
|
JwtFormat(String, IIssuerSecurityTokenProvider) | Initializes a new instance of the JwtFormat class. |
|
JwtFormat(TokenValidationParameters) | Initializes a new instance of the JwtFormat class. |
|
JwtFormat(TokenValidationParameters, IIssuerSecurityTokenProvider) |
Properties
Name | Description | |
---|---|---|
TokenHandler | A System.IdentityModel.Tokens.SecurityTokenHandler designed for creating and validating Json Web Tokens. |
|
UseTokenLifetime | Indicates that the authentication session lifetime (e.g. cookies) should match that of the authentication token. If the token does not provide lifetime information then normal session lifetimes will be used. This is enabled by default. |
|
ValidateIssuer | Gets or sets a value indicating whether JWT issuers should be validated. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Protect(AuthenticationTicket) | Transforms the specified authentication ticket into a JWT. |
|
ToString() | (Inherited from Object.) |
|
Unprotect(String) | Validates the specified JWT and builds an AuthenticationTicket from it. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Owin.Security.Jwt Namespace
Return to top