|
EasySign BETA
Digital Signing Tool
|
Represents the subject of a certificate. More...
Public Member Functions | |
| CertificateSubject (X509Certificate2 certificate) | |
| Initializes a new instance of the CertificateSubject class with the specified X509Certificate2 certificate. | |
| CertificateSubject (string subject) | |
| Initializes a new instance of the CertificateSubject class with the specified subject string. | |
| CertificateSubject (string commonName, string? email, string? organization, string? organizationalUnit, string? locality, string? state, string? country) | |
| Initializes a new instance of the CertificateSubject class with the specified properties. | |
| override string | ToString () |
| Generates a comma-delimited string representation of the certificate subject. | |
Properties | |
| string | CommonName [get, set] |
| Gets or sets the common name (CN) of the certificate subject. | |
| string? | Email [get, set] |
| Gets or sets the email address (E) of the certificate subject. | |
| string? | Organization [get, set] |
| Gets or sets the organization (O) of the certificate subject. | |
| string? | OrganizationalUnit [get, set] |
| Gets or sets the organizational unit (OU) of the certificate subject. | |
| string? | Locality [get, set] |
| Gets or sets the locality (L) of the certificate subject. | |
| string? | State [get, set] |
| Gets or sets the state or province (ST) of the certificate subject. | |
| string? | Country [get, set] |
| Gets or sets the country (C) of the certificate subject. | |
| Dictionary< string, string > | Unknown = [] [get] |
| Gets a dictionary of unknown keys and their values from the parsed subject string. | |
Represents the subject of a certificate.
Definition at line 17 of file CertificateSubject.cs.
| SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject | ( | X509Certificate2 | certificate | ) |
Initializes a new instance of the CertificateSubject class with the specified X509Certificate2 certificate.
| certificate | The certificate to extract the subject from. |
Definition at line 65 of file CertificateSubject.cs.
References SAPTeam.EasySign.CommandLine.CertificateSubject.CommonName, and SAPTeam.EasySign.CommandLine.CertificateSubject.Email.
| SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject | ( | string | subject | ) |
Initializes a new instance of the CertificateSubject class with the specified subject string.
| subject | The subject string in the comma-delimited format. |
Definition at line 91 of file CertificateSubject.cs.
References SAPTeam.EasySign.CommandLine.CertificateSubject.CommonName, SAPTeam.EasySign.CommandLine.CertificateSubject.Country, SAPTeam.EasySign.CommandLine.CertificateSubject.Email, SAPTeam.EasySign.CommandLine.CertificateSubject.Locality, SAPTeam.EasySign.CommandLine.CertificateSubject.Organization, SAPTeam.EasySign.CommandLine.CertificateSubject.OrganizationalUnit, SAPTeam.EasySign.CommandLine.CertificateSubject.State, and SAPTeam.EasySign.CommandLine.CertificateSubject.Unknown.
| SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject | ( | string | commonName, |
| string? | email, | ||
| string? | organization, | ||
| string? | organizationalUnit, | ||
| string? | locality, | ||
| string? | state, | ||
| string? | country ) |
Initializes a new instance of the CertificateSubject class with the specified properties.
| commonName | Common Name (CN) - required. |
| Email (E) - optional. | |
| organization | Organization (O) - optional. |
| organizationalUnit | Organizational Unit (OU) - optional. |
| locality | Locality (L) - optional. |
| state | State or Province (ST) - optional. |
| country | Country (C) - optional. |
Definition at line 154 of file CertificateSubject.cs.
References SAPTeam.EasySign.CommandLine.CertificateSubject.CommonName, SAPTeam.EasySign.CommandLine.CertificateSubject.Country, SAPTeam.EasySign.CommandLine.CertificateSubject.Email, SAPTeam.EasySign.CommandLine.CertificateSubject.Locality, SAPTeam.EasySign.CommandLine.CertificateSubject.Organization, SAPTeam.EasySign.CommandLine.CertificateSubject.OrganizationalUnit, and SAPTeam.EasySign.CommandLine.CertificateSubject.State.
| override string SAPTeam.EasySign.CommandLine.CertificateSubject.ToString | ( | ) |
Generates a comma-delimited string representation of the certificate subject.
Definition at line 174 of file CertificateSubject.cs.
References SAPTeam.EasySign.CommandLine.CertificateSubject.Country, SAPTeam.EasySign.CommandLine.CertificateSubject.Email, SAPTeam.EasySign.CommandLine.CertificateSubject.Locality, SAPTeam.EasySign.CommandLine.CertificateSubject.Organization, SAPTeam.EasySign.CommandLine.CertificateSubject.OrganizationalUnit, and SAPTeam.EasySign.CommandLine.CertificateSubject.State.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunSelfSign().
|
getset |
Gets or sets the common name (CN) of the certificate subject.
Definition at line 22 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject().
|
getset |
Gets or sets the country (C) of the certificate subject.
Definition at line 52 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
getset |
Gets or sets the email address (E) of the certificate subject.
Definition at line 27 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
getset |
Gets or sets the locality (L) of the certificate subject.
Definition at line 42 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
getset |
Gets or sets the organization (O) of the certificate subject.
Definition at line 32 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
getset |
Gets or sets the organizational unit (OU) of the certificate subject.
Definition at line 37 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
getset |
Gets or sets the state or province (ST) of the certificate subject.
Definition at line 47 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject(), and SAPTeam.EasySign.CommandLine.CertificateSubject.ToString().
|
get |
Gets a dictionary of unknown keys and their values from the parsed subject string.
Definition at line 57 of file CertificateSubject.cs.
Referenced by SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject().