Skip to content

Commit

Permalink
Merge pull request #256 from v-xiangs/clean-AAD-Authentication-methods
Browse files Browse the repository at this point in the history
remove JNI method for ActiveDirectoryPassword Authentication
  • Loading branch information
v-ahibr authored Apr 26, 2017
2 parents 2208e61 + a556d82 commit eb801aa
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,6 @@ static FedAuthDllInfo getAccessTokenForWindowsIntegrated(String stsURL,
return dllInfo;
}

static FedAuthDllInfo getAccessToken(String userName,
String password,
String stsURL,
String servicePrincipalName,
String clientConnectionId,
String clientId,
long expirationFileTime) throws DLLException {
FedAuthDllInfo dllInfo = ADALGetAccessToken(userName, password, stsURL, servicePrincipalName, clientConnectionId, clientId,
expirationFileTime, authLogger);
return dllInfo;
}

// InitDNSName should be called to initialize the DNSName before calling this function
byte[] GenerateClientContext(byte[] pin,
boolean[] done) throws SQLServerException {
Expand Down Expand Up @@ -184,15 +172,6 @@ private native static FedAuthDllInfo ADALGetAccessTokenForWindowsIntegrated(Stri
long expirationFileTime,
java.util.logging.Logger log);

private native static FedAuthDllInfo ADALGetAccessToken(String userName,
String password,
String stsURL,
String servicePrincipalName,
String clientConnectionId,
String clientId,
long expirationFileTime,
java.util.logging.Logger log);

native static byte[] DecryptColumnEncryptionKey(String masterKeyPath,
String encryptionAlgorithm,
byte[] encryptedColumnEncryptionKey) throws DLLException;
Expand Down

0 comments on commit eb801aa

Please sign in to comment.