Class SslCertificateCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of SSL certificates.
public class SslCertificateCollection : Collection<SslCertificate>, IList<SslCertificate>, ICollection<SslCertificate>, IList, ICollection, IReadOnlyList<SslCertificate>, IReadOnlyCollection<SslCertificate>, IEnumerable<SslCertificate>, IEnumerable
- Inheritance
-
SslCertificateCollection
- Implements
- Inherited Members
Constructors
SslCertificateCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.SslCertificateCollection class.
public SslCertificateCollection()
Methods
FindByEnhancedUsage(string)
Finds the certificates in the collection that support the specified enhanced usage.
public SslCertificateCollection FindByEnhancedUsage(string oid)
Parameters
oid
stringThe OID of the enhanced usage to locate - for example "1.3.6.1.5.5.7.3.1".
Returns
- SslCertificateCollection
A CENTREL.XIA.Configuration.Types.SSLCertificateCollection that contains the certificates that allow the specified enhanced usage.
FindByFriendlyName(string)
Finds the SSL certificate with the specified friendly name, or null if no certificate with that friendly name exists
public SslCertificate FindByFriendlyName(string friendlyName)
Parameters
friendlyName
stringThe friendly name of the certificate - for example "www.sitename.com"
Returns
FindByHash(string)
Returns the SSL certificate with the specified hash, or null if no certificate with that hash exists
public SslCertificate FindByHash(string hash)
Parameters
hash
stringThe hash of the certificate - for example "37703C415BD0917410C40B9787BCA304216348AB".
Returns
FindByThumbprint(string)
Returns the SSL certificate with the specified thumbprint, or null if no certificate with that thumbprint exists.
public SslCertificate FindByThumbprint(string thumbprint)
Parameters
thumbprint
stringThe thumbprint of the certificate with or without spaces - for example "93 4c 78 68 dc 83 b1 98 90 f5 31 ab 21 c4 1a d9 94 aa f0 d3".
Returns
FindServerAuthenticationCertificates()
Finds the certificates in the collection that support Server Authentication enhanced usage.
public SslCertificateCollection FindServerAuthenticationCertificates()
Returns
- SslCertificateCollection
A CENTREL.XIA.Configuration.Types.SSLCertificateCollection that contains the certificates that allow the specified enhanced usage.
FindServerAuthenticationCertificates(bool)
Finds the certificates in the collection that support Server Authentication enhanced usage.
public SslCertificateCollection FindServerAuthenticationCertificates(bool requirePrivateKey)
Parameters
requirePrivateKey
boolDetermines whether to only return certificates that contain a private key.
Returns
- SslCertificateCollection
A CENTREL.XIA.Configuration.Types.SSLCertificateCollection that contains the certificates that allow the specified enhanced usage.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.SslCertificateCollection class from the specified XML.
public static SslCertificateCollection FromXml(string xml)
Parameters
xml
stringThe XML representation of the object.
Returns
- SslCertificateCollection
A CENTREL.XIA.Configuration.Types.SslCertificateCollection class.
Reverse()
Reverses the order of the elements.
public void Reverse()
Sort()
Sorts the values in order of the certificate name.
public void Sort()
ToString()
Returns the collection of SSL certificates in a human readable format.
public override string ToString()
Returns
- string
The collection of SSL certificates in a human readable format.
ToXml()
Returns the XML representation of this CENTREL.XIA.Configuration.Types.SslCertificateCollection.
public string ToXml()
Returns
- string
The CENTREL.XIA.Configuration.Types.SslCertificateCollection in XML format.