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
ExistsByIdentifier(Guid)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SslCertificate with the specified identifier exists within the collection.
public bool ExistsByIdentifier(Guid identifier)
Parameters
identifierGuidThe unique identifier of the certificate to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SslCertificate with the specified identifier exists within the collection.
FindByEnhancedUsage(string)
Finds the certificates in the collection that support the specified enhanced usage.
public SslCertificateCollection FindByEnhancedUsage(string oid)
Parameters
oidstringThe 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 CENTREL.XIA.Configuration.Types.SslCertificate with the specified friendly name, or null if no certificate with that friendly name exists.
public SslCertificate FindByFriendlyName(string friendlyName)
Parameters
friendlyNamestringThe friendly name of the certificate - for example "www.sitename.com"
Returns
- SslCertificate
The CENTREL.XIA.Configuration.Types.SslCertificate with the specified friendly name, or null if no certificate with that friendly name exists.
FindByHash(string)
Returns the CENTREL.XIA.Configuration.Types.SslCertificate with the specified hash, or null if no certificate with that hash exists.
public SslCertificate FindByHash(string hash)
Parameters
hashstringThe hash of the certificate - for example "37703C415BD0917410C40B9787BCA304216348AB".
Returns
- SslCertificate
The CENTREL.XIA.Configuration.Types.SslCertificate with the specified hash, or null if no certificate with that hash exists.
FindByIdentifier(Guid)
Returns the CENTREL.XIA.Configuration.Types.SslCertificate with the specified identifier, or null if no certificate with that identifier exists.
public SslCertificate FindByIdentifier(Guid identifier)
Parameters
identifierGuidThe unique identifier of the certificate to locate.
Returns
- SslCertificate
The CENTREL.XIA.Configuration.Types.SslCertificate with the specified identifier, or null if no certificate with that identifier exists.
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
thumbprintstringThe 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 a CENTREL.XIA.Configuration.Types.SslCertificateCollection that contains 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 in the collection that support Server Authentication enhanced usage.
FindServerAuthenticationCertificates(bool)
Finds the certificates in the collection that support Server Authentication enhanced usage.
public SslCertificateCollection FindServerAuthenticationCertificates(bool requirePrivateKey)
Parameters
requirePrivateKeyboolDetermines 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
xmlstringThe 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.