EncryptionMethod
- Last Updated: January 17, 2018
- 1 minute read
- DataDirect Connectors
- JDBC
- Apache Spark SQL 6.0
- Documentation
Purpose
Determines whether data is encrypted and decrypted when transmitted over the network between the driver and database server.
Valid Values
noEncryption | SSL |
requestSSL
Behavior
If set to noEncryption, data is not encrypted or decrypted.
If set to SSL, data is encrypted using SSL. If the database server does not support
SSL, the connection fails and the driver throws an exception.
If set to requestSSL, the login request and data is encrypted using SSL. If the
database server does not support SSL, the driver establishes an unencrypted
connection.
Notes
When SSL is enabled, the following properties also apply:
- CryptoProtocolVersion
- HostNameInCertificate
- KeyStore (for SSL client authentication)
- KeyStorePassword (for SSL client authentication)
- KeyPassword (for SSL client authentication)
- TrustStore
- TrustStorePassword
- ValidateServerCertificate
Data Source Method
setEncryptionMethod
Default
noEncryption
Data Type
String