Package jcifs.internal.smb2.nego
Class Smb2NegotiateRequest
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Request<Smb2NegotiateResponse>
-
- jcifs.internal.smb2.nego.Smb2NegotiateRequest
-
- All Implemented Interfaces:
CommonServerMessageBlock
,CommonServerMessageBlockRequest
,Request<Smb2NegotiateResponse>
,SmbNegotiationRequest
,Message
,Request
public class Smb2NegotiateRequest extends ServerMessageBlock2Request<Smb2NegotiateResponse> implements SmbNegotiationRequest
- Author:
- mbechler
-
-
Field Summary
-
Fields inherited from class jcifs.internal.smb2.ServerMessageBlock2
SMB2_CANCEL, SMB2_CHANGE_NOTIFY, SMB2_CLOSE, SMB2_CREATE, SMB2_ECHO, SMB2_FLAGS_ASYNC_COMMAND, SMB2_FLAGS_DFS_OPERATIONS, SMB2_FLAGS_PRIORITY_MASK, SMB2_FLAGS_RELATED_OPERATIONS, SMB2_FLAGS_REPLAY_OPERATION, SMB2_FLAGS_SERVER_TO_REDIR, SMB2_FLAGS_SIGNED, SMB2_FLUSH, SMB2_IOCTL, SMB2_LOCK, SMB2_LOGOFF, SMB2_NEGOTIATE, SMB2_OPLOCK_BREAK, SMB2_QUERY_DIRECTORY, SMB2_QUERY_INFO, SMB2_READ, SMB2_SESSION_SETUP, SMB2_SET_INFO, SMB2_TREE_CONNECT, SMB2_TREE_DISCONNECT, SMB2_WRITE
-
-
Constructor Summary
Constructors Constructor Description Smb2NegotiateRequest(Configuration config, int securityMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Smb2NegotiateResponse
createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2NegotiateResponse> req)
int
getCapabilities()
byte[]
getClientGuid()
int[]
getDialects()
NegotiateContextRequest[]
getNegotiateContexts()
byte[]
getPreauthSalt()
int
getSecurityMode()
boolean
isSigningEnforced()
protected int
readBytesWireFormat(byte[] buffer, int bufferIndex)
int
size()
protected int
writeBytesWireFormat(byte[] dst, int dstIndex)
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2Request
allowChain, createCancel, encode, getCreditCost, getNext, getOverrideTimeout, getResponse, ignoreDisconnect, initResponse, isCancel, isResponseAsync, setNext, setOverrideTimeout, setRequestCredits, setResponse, setTid, split
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2
addFlags, chain, clearFlags, decode, decode, equals, getAsyncId, getCommand, getConfig, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNextCommandOffset, getRawPayload, getSessionId, getStatus, getTreeId, hashCode, haveResponse, isAsync, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, reset, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setNext, setRawPayload, setReadSize, setSessionId, setTreeId, setUid, size8, size8, toString, writeHeaderWireFormat
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jcifs.internal.CommonServerMessageBlock
decode, getCommand, getDigest, getMid, reset, setCommand, setDigest, setExtendedSecurity, setMid, setSessionId, setUid
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Constructor Detail
-
Smb2NegotiateRequest
public Smb2NegotiateRequest(Configuration config, int securityMode)
- Parameters:
config
-securityMode
-
-
-
Method Detail
-
getSecurityMode
public int getSecurityMode()
- Returns:
- the securityMode
-
isSigningEnforced
public boolean isSigningEnforced()
- Specified by:
isSigningEnforced
in interfaceSmbNegotiationRequest
- Returns:
- whether SMB singing is enforced
-
getCapabilities
public int getCapabilities()
- Returns:
- the capabilities
-
getDialects
public int[] getDialects()
- Returns:
- the dialects
-
getClientGuid
public byte[] getClientGuid()
- Returns:
- the clientGuid
-
getNegotiateContexts
public NegotiateContextRequest[] getNegotiateContexts()
- Returns:
- the negotiateContexts
-
getPreauthSalt
public byte[] getPreauthSalt()
- Returns:
- the preauthSalt
-
createResponse
protected Smb2NegotiateResponse createResponse(CIFSContext tc, ServerMessageBlock2Request<Smb2NegotiateResponse> req)
- Specified by:
createResponse
in classServerMessageBlock2Request<Smb2NegotiateResponse>
- Returns:
- See Also:
jcifs.internal.smb2.ServerMessageBlock2Request#createResponse(jcifs.Configuration, jcifs.internal.smb2.ServerMessageBlock2Request)
-
size
public int size()
- Specified by:
size
in interfaceCommonServerMessageBlockRequest
- Returns:
- the size of this message
- See Also:
CommonServerMessageBlockRequest.size()
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)
- Specified by:
writeBytesWireFormat
in classServerMessageBlock2
- See Also:
ServerMessageBlock2.writeBytesWireFormat(byte[], int)
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex)
- Specified by:
readBytesWireFormat
in classServerMessageBlock2
- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
-