JsonWebToken Class

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Services.Common.IssuedToken
    Microsoft.VisualStudio.Services.WebApi.Jwt.JsonWebToken

Namespace:  Microsoft.VisualStudio.Services.WebApi.Jwt
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
<DataContractAttribute> _
Public NotInheritable Class JsonWebToken _
    Inherits IssuedToken
[DataContractAttribute]
public sealed class JsonWebToken : IssuedToken
[DataContractAttribute]
public ref class JsonWebToken sealed : public IssuedToken
[<Sealed>]
[<DataContractAttribute>]
type JsonWebToken =  
    class 
        inherit IssuedToken 
    end
public final class JsonWebToken extends IssuedToken

The JsonWebToken type exposes the following members.

Properties

  Name Description
Public property Actor
Public property Algorithm
Public property Audience
Public property CertificateThumbprint
Protected property CredentialType (Inherited from IssuedToken.)
Public property EncodedToken
Public property IdentityProvider
Public property IsAuthenticated (Inherited from IssuedToken.)
Public property Issuer
Public property NameIdentifier
Public property TokenType
Public property TrustedForDelegation
Public property ValidFrom
Public property ValidTo

Top

Methods

  Name Description
Public methodStatic member Create(String)
Public methodStatic member Create(String, String, DateTime, DateTime, SigningCredentials)
Public methodStatic member Create(String, String, DateTime, DateTime, IEnumerable<Claim>, JsonWebToken)
Public methodStatic member Create(String, String, DateTime, DateTime, IEnumerable<Claim>, SigningCredentials)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString (Overrides Object.ToString().)

Top

Extension Methods

  Name Description
Public Extension Method IsExpired (Defined by JsonWebTokenUtilities.)
Public Extension Method ValidateToken (Defined by JsonWebTokenUtilities.)

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.VisualStudio.Services.WebApi.Jwt Namespace