Package jcifs.internal
Interface SmbNegotiationResponse
-
- All Superinterfaces:
CommonServerMessageBlock,Message,Response
- All Known Implementing Classes:
Smb2NegotiateResponse,SmbComNegotiateResponse
public interface SmbNegotiationResponse extends CommonServerMessageBlock, Response
- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanReuse(CIFSContext tc, boolean forceSigning)intgetInitialCredits()intgetReceiveBufferSize()DialectVersiongetSelectedDialect()intgetSendBufferSize()intgetTransactionBufferSize()booleanhaveCapabilitiy(int cap)booleanisDFSSupported()booleanisSigningEnabled()booleanisSigningNegotiated()booleanisSigningRequired()booleanisValid(CIFSContext cifsContext, SmbNegotiationRequest request)voidsetupRequest(CommonServerMessageBlock request)voidsetupResponse(Response resp)-
Methods inherited from interface jcifs.internal.CommonServerMessageBlock
decode, encode, getCommand, getDigest, getMid, getResponse, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
Methods inherited from interface jcifs.util.transport.Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getMid, getNextResponse, isError, isReceived, isVerifyFailed, received, reset, setExpiration, setMid, verifySignature
-
-
-
-
Method Detail
-
isValid
boolean isValid(CIFSContext cifsContext, SmbNegotiationRequest request)
- Parameters:
cifsContext-singingEnforced-request-- Returns:
- whether the protocol negotiation was successful
-
getSelectedDialect
DialectVersion getSelectedDialect()
- Returns:
- selected dialect
-
isSigningEnabled
boolean isSigningEnabled()
- Returns:
- whether the server has singing enabled
-
isSigningRequired
boolean isSigningRequired()
- Returns:
- whether the server requires signing
-
isDFSSupported
boolean isDFSSupported()
- Returns:
- whether the server supports DFS
-
setupRequest
void setupRequest(CommonServerMessageBlock request)
- Parameters:
request-
-
setupResponse
void setupResponse(Response resp)
- Parameters:
resp-
-
isSigningNegotiated
boolean isSigningNegotiated()
- Returns:
- whether signing has been negotiated
-
haveCapabilitiy
boolean haveCapabilitiy(int cap)
- Parameters:
cap-- Returns:
- whether capability is negotiated
-
getSendBufferSize
int getSendBufferSize()
- Returns:
- the send buffer size
-
getReceiveBufferSize
int getReceiveBufferSize()
- Returns:
- the receive buffer size
-
getTransactionBufferSize
int getTransactionBufferSize()
- Returns:
- the transaction buffer size
-
getInitialCredits
int getInitialCredits()
- Returns:
- number of initial credits the server grants
-
canReuse
boolean canReuse(CIFSContext tc, boolean forceSigning)
- Parameters:
tc-forceSigning-- Returns:
- whether a connection can be reused for this config
-
-