Rocky_Mountain_Vending/.pnpm-store/v10/files/f3/c9ed6695e550f6f6f5b29da0e336a61ba95e6c4c8d9b91f864afda3f28bef9a01ee785628710eadfd06a4b6551f54335a7a969c707c44045004bd84033605a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

78 lines
1.8 KiB
Text

/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import type {Protocol} from 'devtools-protocol';
/**
* The SecurityDetails class represents the security details of a
* response that was received over a secure connection.
*
* @public
*/
export class SecurityDetails {
#subjectName: string;
#issuer: string;
#validFrom: number;
#validTo: number;
#protocol: string;
#sanList: string[];
/**
* @internal
*/
constructor(securityPayload: Protocol.Network.SecurityDetails) {
this.#subjectName = securityPayload.subjectName;
this.#issuer = securityPayload.issuer;
this.#validFrom = securityPayload.validFrom;
this.#validTo = securityPayload.validTo;
this.#protocol = securityPayload.protocol;
this.#sanList = securityPayload.sanList;
}
/**
* The name of the issuer of the certificate.
*/
issuer(): string {
return this.#issuer;
}
/**
* {@link https://en.wikipedia.org/wiki/Unix_time | Unix timestamp}
* marking the start of the certificate's validity.
*/
validFrom(): number {
return this.#validFrom;
}
/**
* {@link https://en.wikipedia.org/wiki/Unix_time | Unix timestamp}
* marking the end of the certificate's validity.
*/
validTo(): number {
return this.#validTo;
}
/**
* The security protocol being used, e.g. "TLS 1.2".
*/
protocol(): string {
return this.#protocol;
}
/**
* The name of the subject to which the certificate was issued.
*/
subjectName(): string {
return this.#subjectName;
}
/**
* The list of {@link https://en.wikipedia.org/wiki/Subject_Alternative_Name | subject alternative names (SANs)} of the certificate.
*/
subjectAlternativeNames(): string[] {
return this.#sanList;
}
}