JwtFormat Constructor (IEnumerable<String>, IEnumerable<IIssuerSecurityTokenProvider>)
Initializes a new instance of the JwtFormat class.
Namespace: Microsoft.Owin.Security.Jwt
Assembly: Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)
Syntax
'Declaration
Public Sub New ( _
allowedAudiences As IEnumerable(Of String), _
issuerCredentialProviders As IEnumerable(Of IIssuerSecurityTokenProvider) _
)
'Usage
Dim allowedAudiences As IEnumerable(Of String)
Dim issuerCredentialProviders As IEnumerable(Of IIssuerSecurityTokenProvider)
Dim instance As New JwtFormat(allowedAudiences, _
issuerCredentialProviders)
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 function JwtFormat(
allowedAudiences : IEnumerable<String>,
issuerCredentialProviders : IEnumerable<IIssuerSecurityTokenProvider>
)
Parameters
- allowedAudiences
Type: System.Collections.Generic.IEnumerable<String>
The allowed audience for JWTs.
- issuerCredentialProviders
Type: System.Collections.Generic.IEnumerable<IIssuerSecurityTokenProvider>
The issuer credential provider.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the issuerCredentialProviders is null. |