44 references to X500DistinguishedNameFlags
netstandard (1)
netstandard.cs (1)
1952
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X500DistinguishedNameFlags
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
862
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X500DistinguishedNameFlags
))]
System.Security.Cryptography (41)
System\Security\Cryptography\X509Certificates\IX509Pal.cs (2)
11
string X500DistinguishedNameDecode(byte[] encodedDistinguishedName,
X500DistinguishedNameFlags
flag);
12
byte[] X500DistinguishedNameEncode(string distinguishedName,
X500DistinguishedNameFlags
flag);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (2)
71
string formedSubject = X500NameEncoder.X500DistinguishedNameDecode(cert.SubjectName.RawData, false,
X500DistinguishedNameFlags
.None);
88
string formedIssuer = X500NameEncoder.X500DistinguishedNameDecode(cert.IssuerName.RawData, false,
X500DistinguishedNameFlags
.None);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
291
public string LegacyIssuer => IssuerName.Decode(
X500DistinguishedNameFlags
.None);
293
public string LegacySubject => SubjectName.Decode(
X500DistinguishedNameFlags
.None);
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (4)
45
public string X500DistinguishedNameDecode(byte[] encodedDistinguishedName,
X500DistinguishedNameFlags
flags)
50
public byte[] X500DistinguishedNameEncode(string distinguishedName,
X500DistinguishedNameFlags
flag)
60
multiLine ?
X500DistinguishedNameFlags
.UseNewLines :
X500DistinguishedNameFlags
.None,
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (6)
45
: this(distinguishedName,
X500DistinguishedNameFlags
.Reversed)
49
public X500DistinguishedName(string distinguishedName,
X500DistinguishedNameFlags
flag)
55
public string Name => _lazyDistinguishedName ??= Decode(
X500DistinguishedNameFlags
.Reversed);
57
public string Decode(
X500DistinguishedNameFlags
flag)
88
private static byte[] Encode(string distinguishedName,
X500DistinguishedNameFlags
flags)
97
private static void ThrowIfInvalid(
X500DistinguishedNameFlags
flags)
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (25)
38
X500DistinguishedNameFlags
flags,
41
bool reverse = (flags &
X500DistinguishedNameFlags
.Reversed) ==
X500DistinguishedNameFlags
.Reversed;
42
bool quoteIfNeeded = (flags &
X500DistinguishedNameFlags
.DoNotUseQuotes) !=
X500DistinguishedNameFlags
.DoNotUseQuotes;
43
bool useMultiSeparator = (flags &
X500DistinguishedNameFlags
.DoNotUsePlusSign) !=
X500DistinguishedNameFlags
.DoNotUsePlusSign;
46
if ((flags &
X500DistinguishedNameFlags
.UseSemicolons) ==
X500DistinguishedNameFlags
.UseSemicolons)
51
else if ((flags & (
X500DistinguishedNameFlags
.UseNewLines |
X500DistinguishedNameFlags
.UseCommas)) ==
X500DistinguishedNameFlags
.UseNewLines)
84
X500DistinguishedNameFlags
flags)
86
bool reverse = (flags &
X500DistinguishedNameFlags
.Reversed) ==
X500DistinguishedNameFlags
.Reversed;
87
bool noQuotes = (flags &
X500DistinguishedNameFlags
.DoNotUseQuotes) ==
X500DistinguishedNameFlags
.DoNotUseQuotes;
88
bool forceUtf8Encoding = (flags &
X500DistinguishedNameFlags
.ForceUTF8Encoding) ==
X500DistinguishedNameFlags
.ForceUTF8Encoding;
93
if ((flags &
X500DistinguishedNameFlags
.UseSemicolons) ==
X500DistinguishedNameFlags
.UseSemicolons)
98
else if ((flags &
X500DistinguishedNameFlags
.UseCommas) ==
X500DistinguishedNameFlags
.UseCommas)
103
else if ((flags &
X500DistinguishedNameFlags
.UseNewLines) ==
X500DistinguishedNameFlags
.UseNewLines)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
15
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X500DistinguishedNameFlags
))]