EasySign BETA
Digital Signing Tool
Loading...
Searching...
No Matches
SAPTeam.EasySign.CommandLine.CertificateSubject Class Reference

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.
 

Detailed Description

Represents the subject of a certificate.

Definition at line 17 of file CertificateSubject.cs.

Constructor & Destructor Documentation

◆ CertificateSubject() [1/3]

SAPTeam.EasySign.CommandLine.CertificateSubject.CertificateSubject ( X509Certificate2 certificate)

Initializes a new instance of the CertificateSubject class with the specified X509Certificate2 certificate.

Parameters
certificateThe 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.

◆ CertificateSubject() [2/3]

◆ CertificateSubject() [3/3]

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.

Parameters
commonNameCommon Name (CN) - required.
emailEmail (E) - optional.
organizationOrganization (O) - optional.
organizationalUnitOrganizational Unit (OU) - optional.
localityLocality (L) - optional.
stateState or Province (ST) - optional.
countryCountry (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.

Member Function Documentation

◆ ToString()

override string SAPTeam.EasySign.CommandLine.CertificateSubject.ToString ( )

Property Documentation

◆ CommonName

string SAPTeam.EasySign.CommandLine.CertificateSubject.CommonName
getset

◆ Country

string? SAPTeam.EasySign.CommandLine.CertificateSubject.Country
getset

◆ Email

◆ Locality

string? SAPTeam.EasySign.CommandLine.CertificateSubject.Locality
getset

◆ Organization

string? SAPTeam.EasySign.CommandLine.CertificateSubject.Organization
getset

◆ OrganizationalUnit

string? SAPTeam.EasySign.CommandLine.CertificateSubject.OrganizationalUnit
getset

◆ State

string? SAPTeam.EasySign.CommandLine.CertificateSubject.State
getset

◆ Unknown

Dictionary<string, string> SAPTeam.EasySign.CommandLine.CertificateSubject.Unknown = []
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().


The documentation for this class was generated from the following file: