java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.ValidateNegotiateInfoResponse
- All Implemented Interfaces:
Decodable
SMB2 Validate Negotiate Info response data structure. This structure contains the server's
validation of the originally negotiated SMB2 dialect.
- Author:
- mbechler
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for ValidateNegotiateInfoResponse -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte bufferintGets the server capabilitiesintGets the negotiated SMB dialectintGets the security modebyte[]Gets the server GUID
-
Constructor Details
-
ValidateNegotiateInfoResponse
public ValidateNegotiateInfoResponse()Default constructor for ValidateNegotiateInfoResponse
-
-
Method Details
-
getCapabilities
public int getCapabilities()Gets the server capabilities- Returns:
- the capabilities flags from the server
-
getServerGuid
public byte[] getServerGuid()Gets the server GUID- Returns:
- the server's unique identifier
-
getSecurityMode
public int getSecurityMode()Gets the security mode- Returns:
- the security mode flags from the server
-
getDialect
public int getDialect()Gets the negotiated SMB dialect- Returns:
- the SMB dialect negotiated with the server
-
decode
Decode data from a byte buffer- Specified by:
decodein interfaceDecodable- Parameters:
buffer- the byte buffer containing the data to decodebufferIndex- the starting index in the bufferlen- the maximum length of data to decode- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- if decoding fails- See Also:
-