Esempio n. 1
0
 private OcspResponder(CertificateAuthority certificateAuthority, OcspResponderOptions options)
 {
     CertificateAuthority = certificateAuthority;
     Url        = certificateAuthority.OcspResponderUri;
     _options   = options;
     _responses = new ConcurrentDictionary <string, DateTimeOffset>(StringComparer.OrdinalIgnoreCase);
 }
Esempio n. 2
0
        public static OcspResponder Create(
            CertificateAuthority certificateAuthority,
            OcspResponderOptions options = null)
        {
            if (certificateAuthority == null)
            {
                throw new ArgumentNullException(nameof(certificateAuthority));
            }

            options = options ?? new OcspResponderOptions();

            return(new OcspResponder(certificateAuthority, options));
        }
Esempio n. 3
0
 private OcspResponder(CertificateAuthority certificateAuthority, OcspResponderOptions options)
 {
     CertificateAuthority = certificateAuthority;
     Url      = certificateAuthority.OcspResponderUri;
     _options = options;
 }