- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 128 for SMBProtocolDecodingException (0.92 sec)
-
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.Configuration; import jcifs.config.PropertyConfiguration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.smb2.nego.CompressionNegotiateContext; /** * Comprehensive tests for SMB3 compression negotiate context. */ public class CompressionNegotiateContextTest {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
SMBUtil.writeInt2(20, buffer, 42); // byteCount assertThrows(SMBProtocolDecodingException.class, () -> { testBlock.decode(buffer, 0); }); } @Test @DisplayName("Test decode NT_CREATE_ANDX extended response") void testDecodeNTCreateAndXExtended() throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2FlushResponse.java
*/ @Override protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex; final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) { throw new SMBProtocolDecodingException("Expected structureSize = 4"); } bufferIndex += 4; return bufferIndex - start;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
byte[] buffer = new byte[2]; SMBUtil.writeInt2(size, buffer, 0); Smb2LogoffResponse resp = newResponse(); // Act SMBProtocolDecodingException ex = assertThrows(SMBProtocolDecodingException.class, () -> resp.readBytesWireFormat(buffer, 0), "Should throw when structure size != 4"); // Assert: message is meaningful
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
} /** * {@inheritDoc} * * @throws SMBProtocolDecodingException if there is an error decoding the response * * @see jcifs.internal.smb2.ServerMessageBlock2#haveResponse(byte[], int, int) */ @Override protected void haveResponse(final byte[] buffer, final int start, final int len) throws SMBProtocolDecodingException { if (isRetainPayload()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/DecodableTest.java
import org.mockito.Mock; import jcifs.internal.SMBProtocolDecodingException; /** * Test class for Decodable interface functionality */ @DisplayName("Decodable Interface Tests") class DecodableTest extends BaseTest { @Mock private Decodable mockDecodable; @Test @DisplayName("Should define decode method") void testDecodeMethod() throws SMBProtocolDecodingException { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java
* @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; if (len < 24) { throw new SMBProtocolDecodingException("Invalid resume key"); } this.resumeKey = new byte[24]; System.arraycopy(buffer, bufferIndex, this.resumeKey, 0, 24);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal.smb1.com; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.smb1.AndXServerMessageBlock; import jcifs.internal.util.SMBUtil; /** * SMB1 COM_LOCKING_ANDX command implementation. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
response.setDigest(mockDigest); when(mockDigest.verify(buffer, 0, 100, 0, response)).thenReturn(true); SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.haveResponse(buffer, 0, 100)); assertTrue(exception.getMessage().contains("Signature verification failed")); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0)