Class: Cerbos::MutualTLS
Overview
Settings for encrypting the gRPC connection and authenticating the client with mutual TLS.
Instance Attribute Summary collapse
-
#client_certificate_pem ⇒ String
readonly
The PEM-encoded client certificate.
-
#client_key_pem ⇒ String
readonly
The PEM-encoded client private key.
Attributes inherited from TLS
Instance Method Summary collapse
-
#initialize(client_certificate_pem:, client_key_pem:, **tls_settings) ⇒ MutualTLS
constructor
Create settings for encrypting the gRPC connection and authenticating the client with mutual TLS.
Constructor Details
#initialize(client_certificate_pem:, client_key_pem:, **tls_settings) ⇒ MutualTLS
Create settings for encrypting the gRPC connection and authenticating the client with mutual TLS.
21 22 23 24 25 26 |
# File 'lib/cerbos/mutual_tls.rb', line 21 def initialize(client_certificate_pem:, client_key_pem:, **tls_settings) super(**tls_settings) @client_certificate_pem = client_certificate_pem @client_key_pem = client_key_pem end |
Instance Attribute Details
#client_certificate_pem ⇒ String (readonly)
The PEM-encoded client certificate.
9 10 11 |
# File 'lib/cerbos/mutual_tls.rb', line 9 def client_certificate_pem @client_certificate_pem end |
#client_key_pem ⇒ String (readonly)
The PEM-encoded client private key.
14 15 16 |
# File 'lib/cerbos/mutual_tls.rb', line 14 def client_key_pem @client_key_pem end |