Search Results for

Show / Hide Table of Contents

# Class SslStreamFactory

Predefined SSL stream factory, loads certificate from specified file.

##### Inheritance

System.Object
SslStreamFactory

##### Implements

ISslStreamFactory

###### Namespace: Apache.Ignite.Core.Client

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class SslStreamFactory : object, ISslStreamFactory

### Constructors

#### SslStreamFactory()

Initializes a new instance of the SslStreamFactory class.

##### Declaration

    public SslStreamFactory()

### Fields

#### DefaultSslProtocols

Default SSL protocols.

##### Declaration

    public const SslProtocols DefaultSslProtocols = null

##### Field Value

Type | Description
--- | ---
SslProtocols |

### Properties

#### CertificatePassword

Gets or sets the certificate file password.

##### Declaration

    public string CertificatePassword { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### CertificatePath

Gets or sets the certificate file (pfx) path.

Java certificates can be converted with `keytool`: `keytool -importkeystore -srckeystore thekeystore.jks -srcstoretype JKS -destkeystore thekeystore.pfx -deststoretype PKCS12`

##### Declaration

    public string CertificatePath { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### CheckCertificateRevocation

Gets or sets a value indicating whether the certificate revocation list is checked during authentication.

##### Declaration

    public bool CheckCertificateRevocation { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### SkipServerCertificateValidation

Gets or sets a value indicating whether to ignore invalid remote (server) certificates. This may be useful for testing with self-signed certificates.

##### Declaration

    public bool SkipServerCertificateValidation { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### SslProtocols

Gets or sets the SSL protocols.

##### Declaration

    public SslProtocols SslProtocols { get; set; }

##### Property Value

Type | Description
--- | ---
SslProtocols |

### Methods

#### Create(Stream, String)

##### Declaration

    public SslStream Create(Stream stream, string targetHost)

##### Parameters

Type | Name | Description
--- | --- | ---
Stream | stream |
System.String | targetHost |

##### Returns

Type | Description
--- | ---
SslStream |

### Implements

ISslStreamFactory