ASN1Subject class
Contains information about the certificate subject. The certificate can be one issued by your private certificate authority (CA) or it can be your private CA certificate. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate. The DN must be unique for each entity, but your private CA can issue more than one certificate with the same DN to the same entity.
Constructors
- ASN1Subject({String? commonName, String? country, String? distinguishedNameQualifier, String? generationQualifier, String? givenName, String? initials, String? locality, String? organization, String? organizationalUnit, String? pseudonym, String? serialNumber, String? state, String? surname, String? title})
-
ASN1Subject.fromJson(Map<
String, dynamic> json) -
factory
Properties
- commonName → String?
-
For CA and end-entity certificates in a private PKI, the common name (CN)
can be any string within the length limit.
final
- country → String?
-
Two-digit code that specifies the country in which the certificate subject
located.
final
- distinguishedNameQualifier → String?
-
Disambiguating information for the certificate subject.
final
- generationQualifier → String?
-
Typically a qualifier appended to the name of an individual. Examples
include Jr. for junior, Sr. for senior, and III for third.
final
- givenName → String?
-
First name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initials → String?
-
Concatenation that typically contains the first letter of the
GivenName, the first letter of the middle name if one exists, and the
first letter of the SurName.
final
- locality → String?
-
The locality (such as a city or town) in which the certificate subject is
located.
final
- organization → String?
-
Legal name of the organization with which the certificate subject is
affiliated.
final
- organizationalUnit → String?
-
A subdivision or unit of the organization (such as sales or finance) with
which the certificate subject is affiliated.
final
- pseudonym → String?
-
Typically a shortened version of a longer GivenName. For example,
Jonathan is often shortened to John. Elizabeth is often shortened to Beth,
Liz, or Eliza.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialNumber → String?
-
The certificate serial number.
final
- state → String?
-
State in which the subject of the certificate is located.
final
- surname → String?
-
Family name. In the US and the UK, for example, the surname of an individual
is ordered last. In Asian cultures the surname is typically ordered first.
final
- title → String?
-
A title such as Mr. or Ms., which is pre-pended to the name to refer
formally to the certificate subject.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited