パッケージ org.postgresql.sspi
クラス SSPIClient
java.lang.Object
org.postgresql.sspi.SSPIClient
- すべての実装されたインタフェース:
ISSPIClient
Use Waffle-JNI to support SSPI authentication when PgJDBC is running on a Windows client and talking to a Windows server.
SSPI is not supported on a non-Windows client.
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタコンストラクタ説明SSPIClient
(PGStream pgStream, String spnServiceClass, boolean enableNegotiate) Instantiate an SSPIClient for authentication of a connection. -
メソッドの概要
修飾子とタイプメソッド説明void
continueSSPI
(int msgLength) Continue an existing authentication conversation with the back-end in response to an authentication request of type AUTH_REQ_GSS_CONT.void
dispose()
Clean up native win32 resources after completion or failure of SSPI authentication.boolean
Test whether we can attempt SSPI authentication.void
Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI).
-
フィールド詳細
-
SSPI_DEFAULT_SPN_SERVICE_CLASS
- 関連項目:
-
-
コンストラクタの詳細
-
SSPIClient
Instantiate an SSPIClient for authentication of a connection.
SSPIClient is not re-usable across connections.
It is safe to instantiate SSPIClient even if Waffle and JNA are missing or on non-Windows platforms, however you may not call any methods other than isSSPISupported().
- パラメータ:
pgStream
- PostgreSQL connection streamspnServiceClass
- SSPI SPN service class, defaults to POSTGRES if nullenableNegotiate
- enable negotiate
-
-
メソッドの詳細
-
isSSPISupported
public boolean isSSPISupported()Test whether we can attempt SSPI authentication. If false, do not attempt to call any other SSPIClient methods.- 定義:
isSSPISupported
インタフェース内ISSPIClient
- 戻り値:
- true if it's safe to attempt SSPI authentication
-
startSSPI
Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI).- 定義:
startSSPI
インタフェース内ISSPIClient
- 例外:
SQLException
- on SSPI authentication handshake failureIOException
- on network I/O issues
-
continueSSPI
Continue an existing authentication conversation with the back-end in response to an authentication request of type AUTH_REQ_GSS_CONT.- 定義:
continueSSPI
インタフェース内ISSPIClient
- パラメータ:
msgLength
- Length of message to read, excluding length word and message type word- 例外:
SQLException
- if something wrong happensIOException
- if something wrong happens
-
dispose
public void dispose()Clean up native win32 resources after completion or failure of SSPI authentication. This SSPIClient instance becomes unusable after disposal.- 定義:
dispose
インタフェース内ISSPIClient
-