Class: Temporalio::Client::Connection::TLSOptions
- Inherits:
-
Object
- Object
- Temporalio::Client::Connection::TLSOptions
- Defined in:
- lib/temporalio/client/connection.rb
Overview
TLS options. All attributes are optional, and an empty options set just enables default TLS.
Instance Attribute Summary collapse
-
#client_cert ⇒ String?
Client certificate for mTLS.
-
#client_private_key ⇒ String?
Client private key for mTLS.
-
#domain ⇒ String?
SNI override.
-
#server_root_ca_cert ⇒ String?
Root CA certificate to validate the server certificate against.
Instance Method Summary collapse
-
#initialize(client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil) ⇒ TLSOptions
constructor
A new instance of TLSOptions.
Constructor Details
#initialize(client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil) ⇒ TLSOptions
Returns a new instance of TLSOptions.
53 54 55 56 57 58 59 60 |
# File 'lib/temporalio/client/connection.rb', line 53 def initialize( client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil ) super end |
Instance Attribute Details
#client_cert ⇒ String?
Returns Client certificate for mTLS. Must be combined with #client_private_key.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/temporalio/client/connection.rb', line 52 class TLSOptions def initialize( client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil ) super end end |
#client_private_key ⇒ String?
Returns Client private key for mTLS. Must be combined with #client_cert.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/temporalio/client/connection.rb', line 52 class TLSOptions def initialize( client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil ) super end end |
#domain ⇒ String?
Returns SNI override. This is only needed for self-hosted servers with certificates that do not match the hostname being connected to.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/temporalio/client/connection.rb', line 52 class TLSOptions def initialize( client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil ) super end end |
#server_root_ca_cert ⇒ String?
Returns Root CA certificate to validate the server certificate against. This is only needed for self-hosted servers with self-signed server certificates.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/temporalio/client/connection.rb', line 52 class TLSOptions def initialize( client_cert: nil, client_private_key: nil, server_root_ca_cert: nil, domain: nil ) super end end |