Show / Hide Table of Contents

# Class SslTransport

##### Inheritance

System.Object
TcpTransport
SslTransport

##### Implements

ITransport
Apache.NMS.IStartable
System.IDisposable
Apache.NMS.IStoppable

##### Inherited Members

TcpTransport.myLock
TcpTransport.socket
TcpTransport.ReceiveBufferSize
TcpTransport.SendBufferSize
TcpTransport.Start()
TcpTransport.IsStarted
TcpTransport.Oneway(Command)
TcpTransport.AsyncRequest(Command)
TcpTransport.TcpNoDelayEnabled
TcpTransport.Request(Command)
TcpTransport.Request(Command, TimeSpan)
TcpTransport.Stop()
TcpTransport.Close()
TcpTransport.Dispose()
TcpTransport.Dispose(Boolean)
TcpTransport.IsDisposed
TcpTransport.ReadLoop()
TcpTransport.Timeout
TcpTransport.AsyncTimeout
TcpTransport.Command
TcpTransport.Exception
TcpTransport.Interrupted
TcpTransport.Resumed
TcpTransport.WireFormat
TcpTransport.IsFaultTolerant
TcpTransport.IsConnected
TcpTransport.RemoteAddress
TcpTransport.Narrow(Type)
TcpTransport.IsReconnectSupported
TcpTransport.IsUpdateURIsSupported
TcpTransport.UpdateURIs(Boolean, Uri[])
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.Transport.Tcp

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class SslTransport : TcpTransport, ITransport, IStartable, IDisposable, IStoppable

### Constructors

| Improve this Doc View Source

#### SslTransport(Uri, Socket, IWireFormat)

##### Declaration

    public SslTransport(Uri location, Socket socket, IWireFormat wireFormat)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Uri | location |
System.Net.Sockets.Socket | socket |
IWireFormat | wireFormat |

### Properties

| Improve this Doc View Source

#### AcceptInvalidBrokerCert

Indicates if the SslTransport should ignore any errors in the supplied Broker certificate and connect anyway, this is useful in testing with a default AMQ broker certificate that is self signed.

##### Declaration

    public bool AcceptInvalidBrokerCert { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### BrokerCertFilename

Indicates the location of the Broker Certificate to use when the Broker is using a self-signed certificate.

##### Declaration

    public string BrokerCertFilename { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### ClientCertFilename

Indicates the location of the Client Certificate to use when the Broker is configured for Client Auth (not common). The SslTransport will supply this certificate to the SslStream via the SelectLocalCertificate method.

##### Declaration

    public string ClientCertFilename { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### ClientCertPassword

Password for the Client Certificate specified via configuration.

##### Declaration

    public string ClientCertPassword { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### ClientCertSubject

##### Declaration

    public string ClientCertSubject { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### KeyStoreLocation

##### Declaration

    public string KeyStoreLocation { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### KeyStoreName

##### Declaration

    public string KeyStoreName { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### ServerName

Indicates the name of the Server's Certificate. By default the Host name of the remote server is used, however if this doesn't match the name of the Server's certificate then this option can be set to override the default.

##### Declaration

    public string ServerName { get; set; }

##### Property Value

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

| Improve this Doc View Source

#### SslProtocol

##### Declaration

    public string SslProtocol { get; set; }

##### Property Value

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

### Methods

| Improve this Doc View Source

#### CreateSocketStream()

##### Declaration

    protected override Stream CreateSocketStream()

##### Returns

Type | Description
--- | ---
System.IO.Stream |

##### Overrides

TcpTransport.CreateSocketStream()
| Improve this Doc View Source

#### Finalize()

##### Declaration

    protected void Finalize()

### Implements

ITransport
Apache.NMS.IStartable
System.IDisposable
Apache.NMS.IStoppable