diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-data.service.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-data.service.ts index 497e08d48d1..e7f9ee9269e 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-data.service.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-data.service.ts @@ -14,8 +14,8 @@ import { DrawerType, } from "../models/password-health"; -import { ReportDecipherService } from "./report-decipher.service"; import { RiskInsightsApiService } from "./risk-insights-api.service"; +import { RiskInsightsEncryptionService } from "./risk-insights-encryption.service"; import { RiskInsightsReportService } from "./risk-insights-report.service"; export class RiskInsightsDataService { private applicationsSubject = new BehaviorSubject(null); @@ -52,7 +52,7 @@ export class RiskInsightsDataService { private reportService: RiskInsightsReportService, private riskInsightsApiService: RiskInsightsApiService, private cipherService: CipherService, - private reportDecipherService: ReportDecipherService, + private riskInsightsEncryptionService: RiskInsightsEncryptionService, ) {} /** @@ -99,10 +99,11 @@ export class RiskInsightsDataService { lastUpdated: new Date(), }; } else { - const [report, summary] = await this.reportDecipherService.decryptRiskInsightsReport( - organizationId as OrganizationId, - reportFromArchive, - ); + const [report, summary] = + await this.riskInsightsEncryptionService.decryptRiskInsightsReport( + organizationId as OrganizationId, + reportFromArchive, + ); return { report, diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/report-decipher.service.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-encryption.service.ts similarity index 98% rename from bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/report-decipher.service.ts rename to bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-encryption.service.ts index dc1358d36ba..35ad002746b 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/report-decipher.service.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-encryption.service.ts @@ -13,7 +13,7 @@ import { GetRiskInsightsReportResponse, } from "../models/password-health"; -export class ReportDecipherService { +export class RiskInsightsEncryptionService { constructor( private keyService: KeyService, private encryptService: EncryptService, diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/access-intelligence.module.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/access-intelligence.module.ts index 0e2aa9a02a2..625ce1f245d 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/access-intelligence.module.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/access-intelligence.module.ts @@ -9,7 +9,7 @@ import { RiskInsightsDataService, RiskInsightsReportService, } from "@bitwarden/bit-common/dirt/reports/risk-insights/services"; -import { ReportDecipherService } from "@bitwarden/bit-common/dirt/reports/risk-insights/services/report-decipher.service"; +import { RiskInsightsEncryptionService } from "@bitwarden/bit-common/dirt/reports/risk-insights/services/risk-insights-encryption.service"; import { ApiService } from "@bitwarden/common/abstractions/api.service"; import { AuditService } from "@bitwarden/common/abstractions/audit.service"; import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service"; @@ -43,7 +43,7 @@ import { RiskInsightsComponent } from "./risk-insights.component"; RiskInsightsReportService, RiskInsightsApiService, CipherService, - ReportDecipherService, + RiskInsightsEncryptionService, ], }, safeProvider({ @@ -61,8 +61,8 @@ import { RiskInsightsComponent } from "./risk-insights.component"; deps: [ApiService], }), safeProvider({ - provide: ReportDecipherService, - useClass: ReportDecipherService, + provide: RiskInsightsEncryptionService, + useClass: RiskInsightsEncryptionService, deps: [KeyService, EncryptService, KeyGenerationService], }), ], diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts index aa576ccfb51..8405832d82e 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts @@ -24,7 +24,7 @@ import { ApplicationHealthReportDetailWithCriticalFlagAndCipher, ApplicationHealthReportSummary, } from "@bitwarden/bit-common/dirt/reports/risk-insights/models/password-health"; -import { ReportDecipherService } from "@bitwarden/bit-common/dirt/reports/risk-insights/services/report-decipher.service"; +import { RiskInsightsEncryptionService } from "@bitwarden/bit-common/dirt/reports/risk-insights/services/risk-insights-encryption.service"; import { getOrganizationById, OrganizationService, @@ -222,7 +222,7 @@ export class AllApplicationsComponent implements OnInit { private accountService: AccountService, protected criticalAppsService: CriticalAppsService, protected riskInsightsApiService: RiskInsightsApiService, - protected reportDecipherService: ReportDecipherService, + protected reportDecipherService: RiskInsightsEncryptionService, ) { this.searchControl.valueChanges .pipe(debounceTime(200), takeUntilDestroyed())