JwtFormat Constructor

 

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

Overload List

Name Description
System_CAPS_protmethod JwtFormat()

Creates a new JwtFormat with TokenHandler and UseTokenLifetime enabled by default.

System_CAPS_pubmethod JwtFormat(IEnumerable<String>, IEnumerable<IIssuerSecurityTokenProvider>)

Initializes a new instance of the JwtFormat class.

System_CAPS_pubmethod JwtFormat(String, IIssuerSecurityTokenProvider)

Initializes a new instance of the JwtFormat class.

System_CAPS_pubmethod JwtFormat(TokenValidationParameters)

Initializes a new instance of the JwtFormat class.

System_CAPS_pubmethod JwtFormat(TokenValidationParameters, IIssuerSecurityTokenProvider)

See Also

JwtFormat Class
Microsoft.Owin.Security.Jwt Namespace

Return to top

JwtFormat Constructor ()

Creates a new JwtFormat with TokenHandler and UseTokenLifetime enabled by default.

Syntax

protected JwtFormat()
protected:
JwtFormat()
new : unit -> JwtFormat
Protected Sub New

Return to top

JwtFormat Constructor (IEnumerable<String>, IEnumerable<IIssuerSecurityTokenProvider>)

Initializes a new instance of the JwtFormat class.

Syntax

public JwtFormat(
    IEnumerable<string> allowedAudiences,
    IEnumerable<IIssuerSecurityTokenProvider> issuerCredentialProviders
)
public:
JwtFormat(
    IEnumerable<String^>^ allowedAudiences,
    IEnumerable<IIssuerSecurityTokenProvider^>^ issuerCredentialProviders
)
new : 
        allowedAudiences:IEnumerable<string> *
        issuerCredentialProviders:IEnumerable<IIssuerSecurityTokenProvider> -> JwtFormat
Public Sub New (
    allowedAudiences As IEnumerable(Of String),
    issuerCredentialProviders As IEnumerable(Of IIssuerSecurityTokenProvider)
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Thrown if the issuerCredentialProviders is null.

Return to top

JwtFormat Constructor (String, IIssuerSecurityTokenProvider)

Initializes a new instance of the JwtFormat class.

Syntax

public JwtFormat(
    string allowedAudience,
    IIssuerSecurityTokenProvider issuerCredentialProvider
)
public:
JwtFormat(
    String^ allowedAudience,
    IIssuerSecurityTokenProvider^ issuerCredentialProvider
)
new : 
        allowedAudience:string *
        issuerCredentialProvider:IIssuerSecurityTokenProvider -> JwtFormat
Public Sub New (
    allowedAudience As String,
    issuerCredentialProvider As IIssuerSecurityTokenProvider
)

Parameters

  • allowedAudience
    Type: System.String

    The allowed audience for JWTs.

Exceptions

Exception Condition
ArgumentNullException

Thrown if the issuerCredentialProvider is null.

Return to top

JwtFormat Constructor (TokenValidationParameters)

Initializes a new instance of the JwtFormat class.

Syntax

public JwtFormat(
    TokenValidationParameters validationParameters
)
public:
JwtFormat(
    TokenValidationParameters^ validationParameters
)
new : 
        validationParameters:TokenValidationParameters -> JwtFormat
Public Sub New (
    validationParameters As TokenValidationParameters
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Thrown if the validationParameters is null.

Return to top

JwtFormat Constructor (TokenValidationParameters, IIssuerSecurityTokenProvider)

Syntax

public JwtFormat(
    TokenValidationParameters validationParameters,
    IIssuerSecurityTokenProvider issuerCredentialProvider
)
public:
JwtFormat(
    TokenValidationParameters^ validationParameters,
    IIssuerSecurityTokenProvider^ issuerCredentialProvider
)
new : 
        validationParameters:TokenValidationParameters *
        issuerCredentialProvider:IIssuerSecurityTokenProvider -> JwtFormat
Public Sub New (
    validationParameters As TokenValidationParameters,
    issuerCredentialProvider As IIssuerSecurityTokenProvider
)

Parameters

Return to top