JwtFormat Constructor (String, 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 ( _
allowedAudience As String, _
issuerCredentialProvider As IIssuerSecurityTokenProvider _
)
'Usage
Dim allowedAudience As String
Dim issuerCredentialProvider As IIssuerSecurityTokenProvider
Dim instance As New JwtFormat(allowedAudience, _
issuerCredentialProvider)
public JwtFormat(
string allowedAudience,
IIssuerSecurityTokenProvider issuerCredentialProvider
)
public:
JwtFormat(
String^ allowedAudience,
IIssuerSecurityTokenProvider^ issuerCredentialProvider
)
new :
allowedAudience:string *
issuerCredentialProvider:IIssuerSecurityTokenProvider -> JwtFormat
public function JwtFormat(
allowedAudience : String,
issuerCredentialProvider : IIssuerSecurityTokenProvider
)
Parameters
- allowedAudience
Type: System.String
The allowed audience for JWTs.
- issuerCredentialProvider
Type: Microsoft.Owin.Security.Jwt.IIssuerSecurityTokenProvider
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the issuerSecurityTokenProvider is null. |