Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Configuration.SslConfiguration

Summary

SSL/TLS certificate configuration.

Constructors

.ctor

Syntax

public SslConfiguration()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

CertificatePassword

Gets or sets the password for the SSL certificate.

Syntax

public string CertificatePassword { get; set; }

Property Value

Type: string? The password to decrypt the certificate file.

CertificatePath

Gets or sets the path to the SSL certificate file.

Syntax

public string CertificatePath { get; set; }

Property Value

Type: string? The file path to the SSL certificate (.pfx, .p12, or .crt file).

StoreLocation

Gets or sets the certificate store location.

Syntax

public Microsoft.OData.Mcp.Core.Configuration.CertificateStoreLocation StoreLocation { get; set; }

Property Value

Type: Microsoft.OData.Mcp.Core.Configuration.CertificateStoreLocation? The certificate store location for loading certificates.

StoreName

Gets or sets the certificate store name.

Syntax

public string StoreName { get; set; }

Property Value

Type: string The certificate store name for loading certificates.

SubjectName

Gets or sets the certificate subject name.

Syntax

public string SubjectName { get; set; }

Property Value

Type: string? The subject name of the certificate to load from the store.

Thumbprint

Gets or sets the certificate thumbprint.

Syntax

public string Thumbprint { get; set; }

Property Value

Type: string? The thumbprint of the certificate to load from the store.

Methods

Clone

Creates a copy of this configuration.

Syntax

public Microsoft.OData.Mcp.Core.Configuration.SslConfiguration Clone()

Returns

Type: Microsoft.OData.Mcp.Core.Configuration.SslConfiguration A new instance with the same settings.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

MergeWith

Merges another configuration into this one.

Syntax

public void MergeWith(Microsoft.OData.Mcp.Core.Configuration.SslConfiguration other)

Parameters

NameTypeDescription
otherMicrosoft.OData.Mcp.Core.Configuration.SslConfigurationThe configuration to merge.

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?

Validate

Validates the SSL configuration.

Syntax

public System.Collections.Generic.IEnumerable<string> Validate()

Returns

Type: System.Collections.Generic.IEnumerable<string> Validation errors.