diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java index f44005478..eeb9907a9 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDataSource.java @@ -1174,7 +1174,7 @@ public void setAADSecurePrincipalId(String AADSecurePrincipalId) { * @deprecated */ @Override - @Deprecated + @Deprecated(since = "9.4.1", forRemoval = true) public void setAADSecurePrincipalSecret(String AADSecurePrincipalSecret) { setStringProperty(connectionProps, SQLServerDriverStringProperty.AAD_SECURE_PRINCIPAL_SECRET.toString(), AADSecurePrincipalSecret); diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java index 4f3f41a02..26df5bb5e 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java @@ -46,6 +46,10 @@ class SQLServerSecurityUtility { // Environment variable for additionally allowed tenants. The tenantIds are comma delimited private static final String ADDITIONALLY_ALLOWED_TENANTS = "ADDITIONALLY_ALLOWED_TENANTS"; + private SQLServerSecurityUtility() { + throw new UnsupportedOperationException(SQLServerException.getErrString("R_notSupported")); + } + /** * Give the hash of given plain text *