C# Class RemObjects.InternetPack.SslConnectionFactory

Inheritance: IConnectionFactory
Show file Open project: remobjects/internetpack Class Usage Examples

Private Properties

Property Type Description
LoadCertificateFromFile void
LoadCertificateFromStore System.Security.Cryptography.X509Certificates.X509Certificate2
LoadCertificateFromStore void

Public Methods

Method Description
CreateClientConnection ( Binding binding ) : Connection
CreateClientConnection ( Connection connection ) : Connection
CreateServerConnection ( Socket socket ) : Connection
LoadCertificate ( ) : void
OnValidateRemoteCertificate ( X509Certificate certificate ) : System.Boolean
SslConnectionFactory ( ) : System

Protected Methods

Method Description
OnNeedPassword ( SslNeedPasswordEventArgs e ) : void
OnValidateRemoteCertificate ( SslValidateCertificateEventArgs e ) : void

Private Methods

Method Description
LoadCertificateFromFile ( ) : void
LoadCertificateFromStore ( String thumbprint, StoreLocation location ) : X509Certificate2
LoadCertificateFromStore ( ) : void

Method Details

CreateClientConnection() public method

public CreateClientConnection ( Binding binding ) : Connection
binding Binding
return Connection

CreateClientConnection() public method

public CreateClientConnection ( Connection connection ) : Connection
connection Connection
return Connection

CreateServerConnection() public method

public CreateServerConnection ( Socket socket ) : Connection
socket System.Net.Sockets.Socket
return Connection

LoadCertificate() public method

public LoadCertificate ( ) : void
return void

OnNeedPassword() protected method

protected OnNeedPassword ( SslNeedPasswordEventArgs e ) : void
e SslNeedPasswordEventArgs
return void

OnValidateRemoteCertificate() public method

public OnValidateRemoteCertificate ( X509Certificate certificate ) : System.Boolean
certificate System.Security.Cryptography.X509Certificates.X509Certificate
return System.Boolean

OnValidateRemoteCertificate() protected method

protected OnValidateRemoteCertificate ( SslValidateCertificateEventArgs e ) : void
e SslValidateCertificateEventArgs
return void

SslConnectionFactory() public method

public SslConnectionFactory ( ) : System
return System