Class SslCertificateEnhancedKeyUsageCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of SSL certificate usages.
public class SslCertificateEnhancedKeyUsageCollection : Collection<SslCertificateEnhancedKeyUsage>, IList<SslCertificateEnhancedKeyUsage>, ICollection<SslCertificateEnhancedKeyUsage>, IList, ICollection, IReadOnlyList<SslCertificateEnhancedKeyUsage>, IReadOnlyCollection<SslCertificateEnhancedKeyUsage>, IEnumerable<SslCertificateEnhancedKeyUsage>, IEnumerable
- Inheritance
-
SslCertificateEnhancedKeyUsageCollection
- Implements
- Inherited Members
Constructors
SslCertificateEnhancedKeyUsageCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.SslCertificateEnhancedKeyUsageCollection class.
public SslCertificateEnhancedKeyUsageCollection()
Methods
Add(string, string)
Adds a new certificate usage to the collection with the specified fiendly name and OID value.
public void Add(string name, string oid)
Parameters
name
stringThe usage friendly name - for example "Server Authentication".
oid
stringThe OID of the certificate usage - for example "1.3.6.1.5.5.7.3.1".
Contains(string)
Returns a System.Boolean value that indicates whether the enhanced usage with the specified OID is permitted in the collection.
public bool Contains(string oid)
Parameters
oid
stringThe OID to locate - for example "1.3.6.1.5.5.7.3.1".
Returns
- bool
A System.Boolean value that indicates whether the enhanced usage with the specified OID is permitted.
Exists(string)
Returns a System.Boolean value that indicates whether the enhanced usage with the specified OID is permitted in the collection.
public bool Exists(string oid)
Parameters
oid
stringThe OID to locate - for example "1.3.6.1.5.5.7.3.1".
Returns
- bool
A System.Boolean value that indicates whether the enhanced usage with the specified OID is permitted.
FindByOid(string)
Returns the enhanced usage object with the specified OID, or null if no enhanced usage with the specified OID is found.
public SslCertificateEnhancedKeyUsage FindByOid(string oid)
Parameters
oid
stringThe OID to locate - for example "1.3.6.1.5.5.7.3.1".
Returns
- SslCertificateEnhancedKeyUsage
The enhanced usage object with the specified OID.
Sort()
Sorts the values in order of the usage name.
public void Sort()
ToString()
Returns this SSL certificate usage collection as a human readable string - one usage per line.
public override string ToString()
Returns
- string
This SSL certificate usage collection as a human readable string.