CsrConfig class
A configuration model representing data used in a Certificate Signing Request (CSR).
This class holds optional information such as organizational details, location, and industry category that are commonly required when generating a CSR for digital certificates.
Constructors
- CsrConfig.new({String? commonName, String? serialNumber, String? organizationIdentifier, String? organizationUnitName, String? organizationName, String? countryName, String? invoiceType, String? locationAddress, String? industryBusinessCategory})
- Constructs a CsrConfig object with optional named parameters.
-
CsrConfig.fromMap(Map<
String, dynamic> csrRaw) - Creates a CsrConfig instance from a JSON-compatible Map.
Properties
- commonName ↔ String?
-
The Common Name (CN) — typically the domain name or entity name.
getter/setter pair
- countryName ↔ String?
-
The country code (ISO 3166-1 alpha-2) representing the organization's location.
getter/setter pair
-
filePath
→ Future<
String> -
The file path/name of the created csr config file.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- industryBusinessCategory ↔ String?
-
The industry or business category of the organization.
getter/setter pair
- invoiceType ↔ String?
-
The type of invoice (e.g., standard, simplified) associated with the CSR.
getter/setter pair
- locationAddress ↔ String?
-
The physical address of the organization or location related to the CSR.
getter/setter pair
- organizationIdentifier ↔ String?
-
The organization's legal or tax identifier.
getter/setter pair
- organizationName ↔ String?
-
The legal name of the organization.
getter/setter pair
- organizationUnitName ↔ String?
-
The name of the specific department or unit within the organization.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialNumber ↔ String?
-
A unique identifier like a serial or registration number.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
) → Future< void> - Saves the current CsrConfig instance to a local file.
-
toJson(
) → Map< String, dynamic> - Converts the CsrConfig instance into a JSON-compatible Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited