Reference documentation and code samples for the Google Cloud Datastream V1 Client class EncryptionAndServerValidation.
Message to represent the option where Datastream will enforce encryption and authenticate server identity. ca_certificate must be set if user selects this option.
Generated from protobuf message google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation
Namespace
Google \ Cloud \ Datastream \ V1 \ SqlServerSslConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ ca_certificate |
string
Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate. |
↳ server_certificate_hostname |
string
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate. |
getCaCertificate
Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCaCertificate
Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServerCertificateHostname
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasServerCertificateHostname
clearServerCertificateHostname
setServerCertificateHostname
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|