public JsonWebTokenController(ILogger <JsonWebTokenController> logger, IJsonWebTokenTools jsonWebTokenTools, ICertificateTools certificateTools) { _logger = logger; _jsonWebTokenTools = jsonWebTokenTools; if (_fullCertificate == null) { _fullCertificate = certificateTools.CreateSignedPrivateCertificate("ten_year_certificate", "ten_year_certificate_password", DateTime.UtcNow.AddYears(10)); _publicCertificate = certificateTools.GetPublicCertificate(_fullCertificate); } }
public CertificateController(ILogger <CertificateController> logger, ICertificateTools certificateTools) { _logger = logger; _certificateTools = certificateTools; }