X509CertificateSecurityTokenProvider Constructor (String, X509Certificate2)
Initializes a new instance of the X509CertificateSecurityTokenProvider class.
Namespace: Microsoft.Owin.Security.Jwt
Assembly: Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)
Syntax
public X509CertificateSecurityTokenProvider(
string issuer,
X509Certificate2 certificate
)
public:
X509CertificateSecurityTokenProvider(
String^ issuer,
X509Certificate2^ certificate
)
new :
issuer:string *
certificate:X509Certificate2 -> X509CertificateSecurityTokenProvider
Public Sub New (
issuer As String,
certificate As X509Certificate2
)
Parameters
issuer
Type: System.StringThe issuer.
certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2The certificate.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | issuer or certificate |
See Also
X509CertificateSecurityTokenProvider Class
Microsoft.Owin.Security.Jwt Namespace
Return to top