- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for areSignaturesActive (0.47 sec)
-
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
@Test @DisplayName("areSignaturesActive(): returns configured boolean false") void areSignaturesActive_false() throws Exception { // Arrange when(handle.areSignaturesActive()).thenReturn(false); // Act boolean result = handle.areSignaturesActive(); // Assert assertFalse(result); verify(handle).areSignaturesActive(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleInternal.java
* @return whether the session uses SMB signing * @throws CIFSException if a general CIFS error occurs * @throws SmbException if an SMB-specific error occurs */ boolean areSignaturesActive() throws CIFSException; /** * Internal/testing use only * * @return attached session */ SmbSession getSession();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Math.min(th.getConfig().getReceiveBufferSize() - 70, th.areSignaturesActive() ? 0xFFFF - 70 : 0xFFFFFF - 70); } // there seems to be a bug with some servers that causes corruption if using signatures + CAP_LARGE_WRITE if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
return transport.getNegotiateResponse().getTransactionBufferSize(); } } @Override public boolean areSignaturesActive() throws SmbException { try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) { return transport.getNegotiateResponse().isSigningNegotiated();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockTree.isSMB2()).thenReturn(false); when(mockTree.hasCapability(SmbConstants.CAP_LARGE_READX)).thenReturn(true); when(mockTree.areSignaturesActive()).thenReturn(false); when(mockConfig.getReceiveBufferSize()).thenReturn(0x200000); // large to allow big block size when(mockTree.getReceiveBufferSize()).thenReturn(0x200000);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
assertEquals(1111, handle.getSendBufferSize()); assertEquals(2222, handle.getReceiveBufferSize()); assertEquals(3333, handle.getMaximumBufferSize()); assertTrue(handle.areSignaturesActive()); verify(session, times(4)).close(); verify(transport, times(4)).close(); } @Test @DisplayName("isSMB2 true and exception fallback to false")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
when(tree.getSendBufferSize()).thenReturn(1024); when(tree.hasCapability(anyInt())).thenAnswer(inv -> ntSmbsCap && inv.getArgument(0).equals(SmbConstants.CAP_NT_SMBS)); when(tree.areSignaturesActive()).thenReturn(false); when(tree.isSMB2()).thenReturn(smb2); when(file.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh); when(fh.acquire()).thenReturn(fh);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
} // there seems to be a bug with some servers that causes corruption if using signatures + // CAP_LARGE_WRITE if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) { this.writeSizeFile = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70); } else { log.debug("No support or SMB signing is enabled, not enabling large writes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
if (th.hasCapability(SmbConstants.CAP_LARGE_READX)) { this.largeReadX = true; this.readSizeFile = Math.min(th.getConfig().getReceiveBufferSize() - 70, th.areSignaturesActive() ? 0xFFFF - 70 : 0xFFFFFF - 70); log.debug("Enabling LARGE_READX with " + this.readSizeFile); } else { log.debug("LARGE_READX disabled"); this.readSizeFile = this.readSize;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0)