Skip to content

Commit

Permalink
Patched substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
sschu committed Mar 20, 2022
1 parent ef6b48f commit 2370474
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
package io.quarkus.jdbc.mssql.runtime.graal.com.microsoft.sqlserver.jdbc;

import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "com.microsoft.sqlserver.jdbc.SQLServerADAL4JUtils")
@Delete
final class SQLServerADAL4JUtils {
}

@TargetClass(className = "com.microsoft.sqlserver.jdbc.SqlFedAuthToken")
final class QuarkusSqlFedAuthToken {

Expand All @@ -22,23 +16,28 @@ final class QuarkusSqlFedAuthInfo {
@TargetClass(className = "com.microsoft.sqlserver.jdbc.SQLServerConnection")
final class QuarkusSQLServerConnection {

@Substitute
private void validateAdalLibrary(String errorMessage) {
throw new IllegalStateException("Quarkus does not support Active Directory based authentication");
}

@Substitute
private QuarkusSqlFedAuthToken getFedAuthToken(QuarkusSqlFedAuthInfo fedAuthInfo) {
throw new IllegalStateException("Quarkus does not support Active Directory based authentication");
}

}

@TargetClass(className = "com.microsoft.sqlserver.jdbc.SQLServerSecurityUtility")
final class QuarkusSQLServerSecurityUtility {

@Substitute
private QuarkusSqlFedAuthToken getMSIAuthToken(String resource, String msiClientId) {
static QuarkusSqlFedAuthToken getMSIAuthToken(String resource, String msiClientId) {
throw new IllegalStateException("Quarkus does not support MSI based authentication");
}

}

@TargetClass(className = "com.microsoft.sqlserver.jdbc.SQLServerColumnEncryptionAzureKeyVaultProvider")
final class QuarkusSQLServerColumnEncryptionAzureKeyVaultProvider {

}

class SQLServerJDBCSubstitutions {

}

0 comments on commit 2370474

Please sign in to comment.