Package sk.ipesoft.d2000.d2japi
Interface CreateSessionResponse
-
public interface CreateSessionResponse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.Future<D2JapiErrorCode>abortSpnegoHandshake(java.lang.Throwable reason)Abort SPNEGO negotiation process and clean all resources.D2SessiongetSession()Get created session.byte[]getSpnegoToken()Get SPNEGO token in case of SPNEGO negotiation continuation or after negotiation with new session.CreateSessionResponseStategetState()Get response state.java.util.concurrent.Future<CreateSessionResponse>sendSpnegoToken(byte[] token)Respond with amended SPNEGO token during handshake.
-
-
-
Method Detail
-
getState
CreateSessionResponseState getState()
Get response state.- Returns:
-
getSession
D2Session getSession()
Get created session. Has value only in statesCreateSessionResponseState.successandCreateSessionResponseState.successWithSpnego.- Returns:
- new session
-
getSpnegoToken
byte[] getSpnegoToken()
Get SPNEGO token in case of SPNEGO negotiation continuation or after negotiation with new session. Has value only in statesCreateSessionResponseState.spnegoContinuationandCreateSessionResponseState.successWithSpnego.- Returns:
- SPNEGO token
-
sendSpnegoToken
java.util.concurrent.Future<CreateSessionResponse> sendSpnegoToken(byte[] token)
Respond with amended SPNEGO token during handshake. Can be used only inCreateSessionResponseState.spnegoContinuationstate.- Parameters:
token- amended SPNEGO token- Returns:
- Future response for another exchange
- Throws:
java.lang.IllegalStateException- when in other state thenCreateSessionResponseState.spnegoContinuation
-
abortSpnegoHandshake
java.util.concurrent.Future<D2JapiErrorCode> abortSpnegoHandshake(java.lang.Throwable reason)
Abort SPNEGO negotiation process and clean all resources. Can be used only inCreateSessionResponseState.spnegoContinuationstate.- Parameters:
reason- fail reason- Returns:
- asynchronous confirmation of closed communication channel
- Throws:
java.lang.IllegalStateException- when in other state thenCreateSessionResponseState.spnegoContinuation
-
-