パッケージ org.postgresql.sspi

クラス SSPIClient

java.lang.Object
org.postgresql.sspi.SSPIClient
すべての実装されたインタフェース:
ISSPIClient

public class SSPIClient extends Object implements 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.

  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    static final String
     
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    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
    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).

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • フィールド詳細

  • コンストラクタの詳細

    • SSPIClient

      public SSPIClient(PGStream pgStream, String spnServiceClass, boolean enableNegotiate)

      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 stream
      spnServiceClass - SSPI SPN service class, defaults to POSTGRES if null
      enableNegotiate - 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

      public void startSSPI() throws SQLException, IOException
      Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI).
      定義:
      startSSPI インタフェース内 ISSPIClient
      例外:
      SQLException - on SSPI authentication handshake failure
      IOException - on network I/O issues
    • continueSSPI

      public void continueSSPI(int msgLength) throws SQLException, IOException
      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 happens
      IOException - 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