Package jcifs.internal.smb2.session
Class Smb2SessionSetupResponse
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Response
-
- jcifs.internal.smb2.session.Smb2SessionSetupResponse
-
- All Implemented Interfaces:
CommonServerMessageBlock,CommonServerMessageBlockResponse,Message,Response
public class Smb2SessionSetupResponse extends ServerMessageBlock2Response
- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intSMB2_SESSION_FLAG_ENCRYPT_DATAstatic intSMB2_SESSION_FLAGS_IS_GUESTstatic intSMB2_SESSION_FLAGS_IS_NULL-
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 Smb2SessionSetupResponse(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBlob()intgetSessionFlags()protected booleanisErrorResponseStatus()booleanisLoggedInAsGuest()voidprepare(CommonServerMessageBlockRequest next)protected intreadBytesWireFormat(byte[] buffer, int bufferIndex)protected intwriteBytesWireFormat(byte[] dst, int dstIndex)-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getNextResponse, haveResponse, isAsyncHandled, isError, isReceived, isSigned, isVerifyFailed, received, reset, setAsyncHandled, setExpiration, verifySignature
-
Methods inherited from class jcifs.internal.smb2.ServerMessageBlock2
addFlags, chain, clearFlags, decode, decode, encode, equals, getAsyncId, getCommand, getConfig, getCredit, getCreditCharge, getDigest, getErrorContextCount, getErrorData, getFlags, getHeaderStart, getLength, getMid, getNext, getNextCommandOffset, getRawPayload, getResponse, getSessionId, getStatus, getTreeId, hashCode, isAsync, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setNext, setRawPayload, setReadSize, setResponse, 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, encode, getCommand, getDigest, getMid, getResponse, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
-
Methods inherited from interface jcifs.internal.CommonServerMessageBlockResponse
isAsync
-
Methods inherited from interface jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
-
-
-
Field Detail
-
SMB2_SESSION_FLAGS_IS_GUEST
public static final int SMB2_SESSION_FLAGS_IS_GUEST
- See Also:
- Constant Field Values
-
SMB2_SESSION_FLAGS_IS_NULL
public static final int SMB2_SESSION_FLAGS_IS_NULL
- See Also:
- Constant Field Values
-
SMB2_SESSION_FLAG_ENCRYPT_DATA
public static final int SMB2_SESSION_FLAG_ENCRYPT_DATA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Smb2SessionSetupResponse
public Smb2SessionSetupResponse(Configuration config)
- Parameters:
config-
-
-
Method Detail
-
prepare
public void prepare(CommonServerMessageBlockRequest next)
- Specified by:
preparein interfaceCommonServerMessageBlockResponse- Overrides:
preparein classServerMessageBlock2Response- See Also:
ServerMessageBlock2Response.prepare(jcifs.internal.CommonServerMessageBlockRequest)
-
isErrorResponseStatus
protected boolean isErrorResponseStatus()
- Overrides:
isErrorResponseStatusin classServerMessageBlock2- See Also:
ServerMessageBlock2.isErrorResponseStatus()
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)- Specified by:
writeBytesWireFormatin classServerMessageBlock2- See Also:
ServerMessageBlock2.writeBytesWireFormat(byte[], int)
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException- Specified by:
readBytesWireFormatin classServerMessageBlock2- Throws:
Smb2ProtocolDecodingExceptionSMBProtocolDecodingException- See Also:
ServerMessageBlock2.readBytesWireFormat(byte[], int)
-
isLoggedInAsGuest
public boolean isLoggedInAsGuest()
- Returns:
- whether the session is either anonymous or a guest session
-
getSessionFlags
public int getSessionFlags()
- Returns:
- the sessionFlags
-
getBlob
public byte[] getBlob()
- Returns:
- security blob
-
-