JwtFormat Class

Signs and validates JSON Web Tokens.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.Jwt.JwtFormat

Namespace:  Microsoft.Owin.Security.Jwt
Assembly:  Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)

Syntax

'Declaration
Public Class JwtFormat _
    Implements ISecureDataFormat(Of AuthenticationTicket)
'Usage
Dim instance As JwtFormat
public class JwtFormat : ISecureDataFormat<AuthenticationTicket>
public ref class JwtFormat : ISecureDataFormat<AuthenticationTicket^>
type JwtFormat =  
    class 
        interface ISecureDataFormat<AuthenticationTicket>
    end
public class JwtFormat implements ISecureDataFormat<AuthenticationTicket>

The JwtFormat type exposes the following members.

Constructors

  Name Description
Public method JwtFormat(IEnumerable<String>, IEnumerable<IIssuerSecurityTokenProvider>) Initializes a new instance of the JwtFormat class.
Public method JwtFormat(String, IIssuerSecurityTokenProvider) Initializes a new instance of the JwtFormat class.

Top

Properties

  Name Description
Public property ValidateIssuer Gets or sets a value indicating whether JWT issuers should be validated.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Protect Transforms the specified authentication ticket into a JWT.
Public method ToString (Inherited from Object.)
Public method Unprotect Validates the specified JWT Token and builds an AuthenticationTicket from it.

Top

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

Reference

Microsoft.Owin.Security.Jwt Namespace