Class SslStreamFactory
Predefined SSL stream factory, loads certificate from specified file.
Inheritance
System.Object
SslStreamFactory
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Apache.Ignite.Core.Client
Assembly: Apache.Ignite.Core.dll
Syntax
public class SslStreamFactory : ISslStreamFactory
Constructors
SslStreamFactory()
Initializes a new instance of the SslStreamFactory class.
Declaration
public SslStreamFactory()
Fields
DefaultSslProtocols
Default SSL protocols.
Declaration
public const SslProtocols DefaultSslProtocols = SslProtocols.Tls
Field Value
Type | Description |
---|---|
System.Security.Authentication.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 |
---|---|
System.Security.Authentication.SslProtocols |
Methods
Create(Stream, String)
Declaration
public SslStream Create(Stream stream, string targetHost)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
System.String | targetHost |
Returns
Type | Description |
---|---|
System.Net.Security.SslStream |