Metodo getTrustServerCertificate (SQLServerDataSource)

Scaricare il driver JDBC

Restituisce un valore Boolean che indica se la proprietà trustServerCertificate è abilitata.

Sintassi

  
public boolean getTrustServerCertificate()  

Valore restituito

true se la proprietà trustServerCertificate è abilitata. In caso contrario, false.

Osservazioni

Se la proprietà trustServerCertificate è impostata su true, il certificato Transport Layer Security (TLS), noto in precedenza come Secure Sockets Layer (SSL) di SQL Server viene automaticamente considerato attendibile quando il livello di comunicazione è crittografato tramite TLS. In altri termini, Microsoft JDBC Driver per SQL Server non convaliderà il certificato TLS/SSL di SQL Server. Il valore predefinito è false.

Se la proprietà trustServerCertificate è impostata su false, il certificato TLS/SSL del server verrà convalidato da Microsoft JDBC Driver per SQL Server.

Vedere anche

Membri di SQLServerDataSource
Classe SQLServerDataSource