パッケージ jcifs.internal.smb2.nego
クラス Smb2NegotiateResponse
- java.lang.Object
-
- jcifs.internal.smb2.ServerMessageBlock2
-
- jcifs.internal.smb2.ServerMessageBlock2Response
-
- jcifs.internal.smb2.nego.Smb2NegotiateResponse
-
- すべての実装されたインタフェース:
CommonServerMessageBlock,CommonServerMessageBlockResponse,SmbNegotiationResponse,Message,Response
public class Smb2NegotiateResponse extends ServerMessageBlock2Response implements SmbNegotiationResponse
- 作成者:
- mbechler
-
-
フィールドの概要
-
クラスから継承されたフィールド 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
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Smb2NegotiateResponse(Configuration cfg)
-
メソッドの概要
-
クラスから継承されたメソッド jcifs.internal.smb2.ServerMessageBlock2Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getNextResponse, haveResponse, isAsyncHandled, isError, isReceived, isSigned, isVerifyFailed, prepare, received, reset, setAsyncHandled, setExpiration, verifySignature
-
クラスから継承されたメソッド 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, isErrorResponseStatus, isRetainPayload, pad8, readErrorResponse, readHeaderWireFormat, retainPayload, setAsyncId, setCommand, setCredit, setDigest, setExtendedSecurity, setMid, setNext, setRawPayload, setReadSize, setResponse, setSessionId, setTreeId, setUid, size8, size8, writeHeaderWireFormat
-
インタフェースから継承されたメソッド jcifs.internal.CommonServerMessageBlock
decode, encode, getCommand, getDigest, getMid, getResponse, reset, setCommand, setDigest, setExtendedSecurity, setMid, setResponse, setSessionId, setUid
-
インタフェースから継承されたメソッド jcifs.internal.CommonServerMessageBlockResponse
isAsync
-
インタフェースから継承されたメソッド jcifs.util.transport.Message
getRawPayload, isRetainPayload, retainPayload, setRawPayload
-
インタフェースから継承されたメソッド jcifs.util.transport.Response
clearReceived, error, exception, getErrorCode, getException, getExpiration, getGrantedCredits, getMid, isError, isReceived, isVerifyFailed, received, reset, setExpiration, setMid, verifySignature
-
-
-
-
コンストラクタの詳細
-
Smb2NegotiateResponse
public Smb2NegotiateResponse(Configuration cfg)
- パラメータ:
cfg-
-
-
メソッドの詳細
-
getInitialCredits
public int getInitialCredits()
- 定義:
getInitialCreditsインタフェース内SmbNegotiationResponse- 戻り値:
- number of initial credits the server grants
- 関連項目:
SmbNegotiationResponse.getInitialCredits()
-
getDialectRevision
public int getDialectRevision()
- 戻り値:
- the dialectRevision
-
getServerGuid
public byte[] getServerGuid()
- 戻り値:
- the serverGuid
-
getSelectedDialect
public DialectVersion getSelectedDialect()
- 定義:
getSelectedDialectインタフェース内SmbNegotiationResponse- 戻り値:
- the selectedDialect
-
getSelectedCipher
public int getSelectedCipher()
- 戻り値:
- the selectedCipher
-
getSelectedPreauthHash
public int getSelectedPreauthHash()
- 戻り値:
- the selectedPreauthHash
-
getCapabilities
public final int getCapabilities()
- 戻り値:
- the server returned capabilities
-
getCommonCapabilities
public final int getCommonCapabilities()
- 戻り値:
- the common/negotiated capabilieis
-
getSecurityBlob
public byte[] getSecurityBlob()
- 戻り値:
- initial security blob
-
getMaxTransactSize
public int getMaxTransactSize()
- 戻り値:
- the maxTransactSize
-
getTransactionBufferSize
public int getTransactionBufferSize()
- 定義:
getTransactionBufferSizeインタフェース内SmbNegotiationResponse- 戻り値:
- the transaction buffer size
- 関連項目:
SmbNegotiationResponse.getTransactionBufferSize()
-
getNegotiateContexts
public NegotiateContextResponse[] getNegotiateContexts()
- 戻り値:
- the negotiateContexts
-
getServerStartTime
public long getServerStartTime()
- 戻り値:
- the serverStartTime
-
getSecurityMode
public int getSecurityMode()
- 戻り値:
- the securityMode
-
haveCapabilitiy
public boolean haveCapabilitiy(int cap)
- 定義:
haveCapabilitiyインタフェース内SmbNegotiationResponse- 戻り値:
- whether capability is negotiated
- 関連項目:
SmbNegotiationResponse.haveCapabilitiy(int)
-
isDFSSupported
public boolean isDFSSupported()
- 定義:
isDFSSupportedインタフェース内SmbNegotiationResponse- 戻り値:
- whether the server supports DFS
- 関連項目:
SmbNegotiationResponse.isDFSSupported()
-
isEncryptionSupported
public boolean isEncryptionSupported()
- 戻り値:
- whether SMB encryption is supported by the server
-
canReuse
public boolean canReuse(CIFSContext tc, boolean forceSigning)
- 定義:
canReuseインタフェース内SmbNegotiationResponse- 戻り値:
- whether a connection can be reused for this config
- 関連項目:
SmbNegotiationResponse.canReuse(jcifs.CIFSContext, boolean)
-
isValid
public boolean isValid(CIFSContext tc, SmbNegotiationRequest req)
- 定義:
isValidインタフェース内SmbNegotiationResponse- 戻り値:
- whether the protocol negotiation was successful
-
getReceiveBufferSize
public int getReceiveBufferSize()
- 定義:
getReceiveBufferSizeインタフェース内SmbNegotiationResponse- 戻り値:
- the receive buffer size
- 関連項目:
SmbNegotiationResponse.getReceiveBufferSize()
-
getSendBufferSize
public int getSendBufferSize()
- 定義:
getSendBufferSizeインタフェース内SmbNegotiationResponse- 戻り値:
- the send buffer size
- 関連項目:
SmbNegotiationResponse.getSendBufferSize()
-
isSigningEnabled
public boolean isSigningEnabled()
- 定義:
isSigningEnabledインタフェース内SmbNegotiationResponse- 戻り値:
- whether the server has singing enabled
- 関連項目:
SmbNegotiationResponse.isSigningEnabled()
-
isSigningRequired
public boolean isSigningRequired()
- 定義:
isSigningRequiredインタフェース内SmbNegotiationResponse- 戻り値:
- whether the server requires signing
- 関連項目:
SmbNegotiationResponse.isSigningRequired()
-
isSigningNegotiated
public boolean isSigningNegotiated()
- 定義:
isSigningNegotiatedインタフェース内SmbNegotiationResponse- 戻り値:
- whether signing has been negotiated
- 関連項目:
SmbNegotiationResponse.isSigningNegotiated()
-
setupRequest
public void setupRequest(CommonServerMessageBlock request)
-
setupResponse
public void setupResponse(Response resp)
-
readBytesWireFormat
protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException
-
createContext
protected static NegotiateContextResponse createContext(int type)
- パラメータ:
type-- 戻り値:
-
writeBytesWireFormat
protected int writeBytesWireFormat(byte[] dst, int dstIndex)
-
toString
public String toString()
- オーバーライド:
toStringクラス内ServerMessageBlock2
-
-