Package sk.ipesoft.d2000.d2japi
Interface SpnegoHandler
-
public interface SpnegoHandler
Handler of SPNEGO communication exchange. Communication goes through phases:- Client sends initiation token to the server. Token is provided by
getInitiationToken()
- Server responds with updated token. Token is provided through
handleTokenFromServer(byte[], sk.ipesoft.d2000.d2japi.SpnegoHandler.ResponseHandler)
- If
responseListener
is notnull
then next update of token is required. Client responds throughSpnegoHandler.ResponseHandler.respondWithToken(byte[])
- If
responseListener
isnull
then that was final response from the server and logon confirmation message will follow
- Client sends initiation token to the server. Token is provided by
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SpnegoHandler.ResponseHandler
Handler of single SPNEGO response.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getInitiationToken()
Provide initiation SPNEGO token.void
handleTokenFromServer(byte[] token, SpnegoHandler.ResponseHandler responseListener)
Handle SPNEGO server response.
-
-
-
Method Detail
-
handleTokenFromServer
void handleTokenFromServer(byte[] token, SpnegoHandler.ResponseHandler responseListener)
Handle SPNEGO server response. Called arbitrary number of times.NOTE: Method is called in JAPI communication thread, that should be release as soon as possible! Dispatch actual handling and response to another thread.
- Parameters:
token
- SPNEGO token from the serverresponseListener
- handles delivering response to the server.
-
getInitiationToken
byte[] getInitiationToken()
Provide initiation SPNEGO token. Called once at the beginning.- Returns:
- SPNEGO token.
-
-