public class SSPIJNIClient
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| private boolean | initializedSSPI client initialized flag. | 
| private static boolean | libraryLoadedSSPI native library loaded flag. | 
| private static SSPIJNIClient | thisInstanceSingleton instance. | 
| Modifier | Constructor and Description | 
|---|---|
| private  | SSPIJNIClient()Private constructor for singleton. | 
| Modifier and Type | Method and Description | 
|---|---|
| static SSPIJNIClient | getInstance()Returns the singleton  SSPIJNIClientinstance. | 
| private void | initialize()Initializes the SSPI client. | 
| void | invokeInitialize()Calls  #initialize()if the SSPI client is not already inited. | 
| byte[] | invokePrepareSSORequest()Calls  #prepareSSORequest()to prepare the NTLM TYPE-1 message. | 
| byte[] | invokePrepareSSOSubmit(byte[] buf)Calls  #prepareSSOSubmit(byte[], long)to prepare the NTLM TYPE-3
 message. | 
| void | invokeUnInitialize()Calls  #unInitialize()if the SSPI client is inited. | 
| private byte[] | prepareSSORequest()Prepares the NTLM TYPE-1 message and returns it as a
  byte[]. | 
| private byte[] | prepareSSOSubmit(byte[] buf,
                long size)Prepares the NTLM TYPE-3 message using the current user's credentials. | 
| private void | unInitialize()Uninitializes the SSPI client. | 
private static SSPIJNIClient thisInstance
private static boolean libraryLoaded
private boolean initialized
private void initialize()
private void unInitialize()
private byte[] prepareSSORequest()
byte[].private byte[] prepareSSOSubmit(byte[] buf,
                      long size)
It needs the challenge BLOB and it's size as input. The challenge BLOB is nothig but the TYPE-2 message that is received from the SQL Server.
buf - challenge BLOBsize - challenge BLOB sizepublic static SSPIJNIClient getInstance() throws java.lang.Exception
SSPIJNIClient instance.java.sql.SQLException - if an error occurs during initializationjava.lang.Exceptionpublic void invokeInitialize()
#initialize() if the SSPI client is not already inited.public void invokeUnInitialize()
#unInitialize() if the SSPI client is inited.public byte[] invokePrepareSSORequest()
                               throws java.lang.Exception
#prepareSSORequest() to prepare the NTLM TYPE-1 message.java.lang.Exception - if an error occurs during the call or the SSPI client
                   is uninitializedpublic byte[] invokePrepareSSOSubmit(byte[] buf)
                              throws java.lang.Exception
#prepareSSOSubmit(byte[], long) to prepare the NTLM TYPE-3
 message.java.lang.Exception - if an error occurs during the call or the SSPI client
                   is uninitializedGenerated on June 8 2013