public PrivateCertificateProcessing(ICertificateRepository certificateRepository, IConfigurationRepository configurationRepository, ICertificateProvider certificateProvider, IAuthorizationLogic authorizationLogic, AdcsTemplateLogic templateLogic, IAuditLogic audit) { this.audit = audit; this.configurationRepository = configurationRepository; this.certificateRepository = certificateRepository; this.certificateProvider = certificateProvider; this.authorizationLogic = authorizationLogic; this.templateLogic = templateLogic; this.dataTransformation = new DataTransformation(); this.hashProvider = new HashProvider(); this.secrets = new SecretKeyProvider(); this.cipher = new EncryptionProvider(configurationRepository.GetAppConfig().EncryptionKey); }
public CertificateManagementLogic( IConfigurationRepository configurationRepository, ICertificateRepository certificateRepository, IAuthorizationLogic authorizationLogic, IAuditLogic audit, SecurityPrincipalLogic securityPrincipalLogic, EncryptionProvider cipher ) { this.securityPrincipalLogic = securityPrincipalLogic; this.configurationRepository = configurationRepository; this.certificateRepository = certificateRepository; this.authorizationLogic = authorizationLogic; this.cipher = cipher; this.hashProvider = new HashProvider(); this.keygen = new SecretKeyProvider(); this.audit = audit; }