IcpBrasilInfo class
Parsed ICP-Brasil fields extracted from a certificate.
Constructors
-
IcpBrasilInfo({String? name, String? cpf, String? cpfOtherNameRaw, String? cnpj, DateTime? birthDate, String? nis, String? idCard, String? cei, String? voterRegistration, String? companyName, String? responsibleName, List<
String> policyOids = const [], Map<String, String> otherNames = const {}}) -
const
Properties
- birthDate → DateTime?
-
Birth date, read from the first 8 digits (DDMMYYYY) of the
natural-person block.
final
- cei → String?
-
INSS-specific registration (CEI) of the holder, natural person
(OID 2.16.76.1.3.6) or legal entity (OID 2.16.76.1.3.7).
final
- cnpj → String?
-
CNPJ, 14 digits (OID 2.16.76.1.3.3 or the DN
serialNumber), with its check digits verified.final - companyName → String?
-
Business name of the legal entity (OID 2.16.76.1.3.8).
final
- cpf → String?
-
CPF, 11 digits, already cut from the official offset of the ICP-Brasil
block and with its check digits verified.
final
- cpfOtherNameRaw → String?
-
Raw value of the natural-person
otherName(OID 2.16.76.1.3.1), exactly as it came in the certificate.final - hashCode → int
-
The hash code for this object.
no setterinherited
- idCard → String?
-
ID card number (RG) from the natural-person block, without the padding
zeroes, or
nullwhen not informed.final - isLegalEntity → bool
-
Whether the certificate identifies a legal entity (it carries a CNPJ).
no setter
- name → String?
-
Subject name (usually CommonName).
final
- nis → String?
-
NIS/PIS/PASEP from the natural-person block, or
nullwhen the CA left the field zeroed.final -
otherNames
→ Map<
String, String> -
Raw otherName values keyed by OID.
final
-
policyOids
→ List<
String> -
Policy OIDs from the Certificate Policies extension.
final
- responsibleName → String?
-
Name of the person responsible for the legal entity
(OID 2.16.76.1.3.2).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- voterRegistration → String?
-
Voter registration (título de eleitor), OID 2.16.76.1.3.5.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited