From 63f4ab637c3ff3f4f06c428f4d78811ef4d44bfd Mon Sep 17 00:00:00 2001 From: lilgreenbird Date: Mon, 23 Jan 2023 15:57:47 -0800 Subject: [PATCH] more fixes --- .../com/microsoft/sqlserver/jdbc/SQLServerDataSource.java | 2 +- .../microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 *