public T GetCertificate <T>(Guid id) where T : ILoggableEntity
        {
            T cert = certificateRepository.Get <T>(id);

            ClaimsPrincipal system = LocalIdentityProviderLogic.GetSystemIdentity();

            audit.LogSecurityAuditSuccess(system, cert, EventCategory.CertificateViewed);

            return(cert);
        }
        //SecretKeyProvider keyProvider;

        public InitialSetupLogic(IConfigurationRepository configurationRepository)
        {
            //this.runtimeConfigurationState = runtimeConfigurationState;
            this.configurationRepository = configurationRepository;
            this.templateLogic           = new AdcsTemplateLogic(configurationRepository, new ActiveDirectoryRepository());
            this.certificateAuthorityConfigurationLogic = new CertificateAuthorityConfigurationLogic(configurationRepository);
            this.idpLogic           = new ActiveDirectoryIdentityProviderLogic(configurationRepository);
            this.authorizationLogic = new AuthorizeInitialSetup(configurationRepository);
            this.roleManagement     = new RoleManagementLogic(configurationRepository, authorizationLogic);
            this.localIdpLogic      = new LocalIdentityProviderLogic(configurationRepository);
        }
Exemple #3
0
 public IdentityAuthenticationLogic(IConfigurationRepository configurationRepository, IActiveDirectoryAuthenticator activeDirectoryAuthenticator)
 {
     this.localIdentityProviderLogic   = new LocalIdentityProviderLogic(configurationRepository);
     this.activeDirectoryAuthenticator = activeDirectoryAuthenticator;
     this.configurationRepository      = configurationRepository;
 }