# Deprecated API

## Contents

- For Removal
- Interfaces
- Methods
- Constructors

For Removal
com.microsoft.sqlserver.jdbc.ISQLServerConnection.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens.
com.microsoft.sqlserver.jdbc.ISQLServerConnection.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getAADSecurePrincipalId(): Use `ISQLServerDataSource.getUser()` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getJASSConfigurationName(): Use `ISQLServerDataSource.getJAASConfigurationName()` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getMSIClientId(): Use `ISQLServerDataSource.getUser()` instead.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getMsiTokenCacheTtl()
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setAADSecurePrincipalId​(String): Use `ISQLServerDataSource.setUser(String user)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setAADSecurePrincipalSecret​(String): Use `ISQLServerDataSource.setPassword(String password)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setEncrypt​(boolean): Use `ISQLServerDataSource.setEncrypt(String encryptOption)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setJASSConfigurationName​(String): Use `ISQLServerDataSource.setJAASConfigurationName(String configurationName)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setMSIClientId​(String): Use `ISQLServerDataSource.setUser(String user)` instead.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setMsiTokenCacheTtl​(int)
com.microsoft.sqlserver.jdbc.SQLServerColumnEncryptionAzureKeyVaultProvider​(SQLServerKeyVaultAuthenticationCallback)
com.microsoft.sqlserver.jdbc.SQLServerConnection.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens. This method will always return 0 and is for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerConnection.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens. This method is a no-op for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getAADSecurePrincipalId()
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getJASSConfigurationName()
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getMSIClientId(): This method is deprecated. Use `SQLServerDataSource.getUser()` instead. Returns the value for the connection property 'msiClientId'.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens. This method is a no-op for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setAADSecurePrincipalId​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setAADSecurePrincipalSecret​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setEncrypt​(boolean)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setJASSConfigurationName​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setMSIClientId​(String): This method is deprecated. Use `SQLServerDataSource.setUser(String user)` instead. Sets the client id to be used to retrieve the access token for a user-assigned Managed Identity.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens. This method will always return 0 and is for backwards compatibility only.

Interfaces
com.microsoft.sqlserver.jdbc.ISQLServerBulkRecord: as of 8.1.0, because the interface contains methods which are not called as part of actual bulk copy process. Use `ISQLServerBulkData`} instead.

Methods
com.microsoft.sqlserver.jdbc.ISQLServerCallableStatement.getBigDecimal​(String, int)
com.microsoft.sqlserver.jdbc.ISQLServerConnection.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens.
com.microsoft.sqlserver.jdbc.ISQLServerConnection.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getAADSecurePrincipalId(): Use `ISQLServerDataSource.getUser()` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getJASSConfigurationName(): Use `ISQLServerDataSource.getJAASConfigurationName()` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getMSIClientId(): Use `ISQLServerDataSource.getUser()` instead.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.getMsiTokenCacheTtl()
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setAADSecurePrincipalId​(String): Use `ISQLServerDataSource.setUser(String user)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setAADSecurePrincipalSecret​(String): Use `ISQLServerDataSource.setPassword(String password)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setEncrypt​(boolean): Use `ISQLServerDataSource.setEncrypt(String encryptOption)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setJASSConfigurationName​(String): Use `ISQLServerDataSource.setJAASConfigurationName(String configurationName)` instead
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setMSIClientId​(String): Use `ISQLServerDataSource.setUser(String user)` instead.
com.microsoft.sqlserver.jdbc.ISQLServerDataSource.setMsiTokenCacheTtl​(int)
com.microsoft.sqlserver.jdbc.SQLServerCallableStatement.getBigDecimal​(int, int)
com.microsoft.sqlserver.jdbc.SQLServerConnection.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens. This method will always return 0 and is for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerConnection.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens. This method is a no-op for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getAADSecurePrincipalId()
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getJASSConfigurationName()
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getMSIClientId(): This method is deprecated. Use `SQLServerDataSource.getUser()` instead. Returns the value for the connection property 'msiClientId'.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getMsiTokenCacheTtl(): Time-to-live is no longer supported for the cached Managed Identity tokens. This method is a no-op for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setAADSecurePrincipalId​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setAADSecurePrincipalSecret​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setEncrypt​(boolean)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setJASSConfigurationName​(String)
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setMSIClientId​(String): This method is deprecated. Use `SQLServerDataSource.setUser(String user)` instead. Sets the client id to be used to retrieve the access token for a user-assigned Managed Identity.
com.microsoft.sqlserver.jdbc.SQLServerDataSource.setMsiTokenCacheTtl​(int): Time-to-live is no longer supported for the cached Managed Identity tokens. This method will always return 0 and is for backwards compatibility only.
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setUnicodeStream​(int, InputStream, int)
com.microsoft.sqlserver.jdbc.SQLServerResultSet.getBigDecimal​(int, int)
com.microsoft.sqlserver.jdbc.SQLServerResultSet.getUnicodeStream​(int)

Constructors
com.microsoft.sqlserver.jdbc.SQLServerBlob​(SQLServerConnection, byte[]): Use `SQLServerConnection.createBlob()` instead.
com.microsoft.sqlserver.jdbc.SQLServerClob​(SQLServerConnection, String): Use `SQLServerConnection.createClob()` instead.
com.microsoft.sqlserver.jdbc.SQLServerColumnEncryptionAzureKeyVaultProvider​(SQLServerKeyVaultAuthenticationCallback)