|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.sspi.SSPIClient
public class SSPIClient
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.
| Field Summary | |
|---|---|
static String |
SSPI_DEFAULT_SPN_SERVICE_CLASS
|
| Constructor Summary | |
|---|---|
SSPIClient(PGStream pgStream,
String spnServiceClass,
boolean enableNegotiate,
Logger logger)
Instantiate an SSPIClient for authentication of a connection. |
|
| Method Summary | |
|---|---|
void |
continueSSPI(int msgLength)
Continue an existing authentication conversation with the back-end in resonse 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 |
isSSPISupported()
Test whether we can attempt SSPI authentication. |
void |
startSSPI()
Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String SSPI_DEFAULT_SPN_SERVICE_CLASS
| Constructor Detail |
|---|
public SSPIClient(PGStream pgStream,
String spnServiceClass,
boolean enableNegotiate,
Logger logger)
pgStream - PostgreSQL connection streamspnServiceClass - SSPI SPN service class, defaults to POSTGRES if nullenableNegotiate - enable negotiatelogger - logger| Method Detail |
|---|
public boolean isSSPISupported()
isSSPISupported in interface ISSPIClient
public void startSSPI()
throws SQLException,
IOException
startSSPI in interface ISSPIClientSQLException - on SSPI authentication handshake failure
IOException - on network I/O issues
public void continueSSPI(int msgLength)
throws SQLException,
IOException
continueSSPI in interface ISSPIClientmsgLength - Length of message to read, excluding length word and message type word
SQLException - if something wrong happens
IOException - if something wrong happenspublic void dispose()
dispose in interface ISSPIClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||