- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 174 for setConfig (1.25 sec)
-
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
* methods that the next part should be sent. This is a * very indirect and simple batching control mechanism. */ if (this.andx == null || !getConfig().isUseBatching() || this.batchLevel >= getBatchLimit(getConfig(), (byte) this.andx.getCommand())) { this.andxCommand = (byte) 0xFF; this.andx = null; dst[start + ANDX_COMMAND_OFFSET] = (byte) 0xFF;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
void testConstructorWithTransportThrowsException() throws Exception { when(mockTransport.getContext()).thenReturn(mockContext); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLanManCompatibility()).thenReturn(3); when(mockTransport.getServerEncryptionKey()).thenThrow(new RuntimeException("Test exception"));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
} } @BeforeEach void setUp() throws Exception { parent = mock(SmbFile.class); when(parent.getLocator()).thenReturn(locator); when(treeHandle.getConfig()).thenReturn(config); when(treeHandle.acquire()).thenReturn(treeHandle); when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
mockConfig = Mockito.mock(Configuration.class); mockCredentials = Mockito.mock(Credentials.class); mockCredentialsInternal = Mockito.mock(CredentialsInternal.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
private byte[] testFileId; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); when(mockConfig.getListSize()).thenReturn(65536); testFileId = new byte[16];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
@Override protected URLConnection openConnection(URL u) { return null; // not used } }; @BeforeEach void setup() { when(ctx.getConfig()).thenReturn(config); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getNameServiceClient()).thenReturn(nsc); } private static URL smbUrl(String spec) { try {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
props.setProperty("jcifs.smb.client.channelHealthCheckInterval", "5"); multiConfig = new PropertyConfiguration(props); // Mock context and session for ChannelManager when(mockContext.getConfig()).thenReturn(multiConfig); when(mockSession.getSessionKey()).thenReturn(new byte[16]); channelManager = new ChannelManager(mockContext, mockSession); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
// make sure that validation is performed in any case final Smb2SigningDigest dgst = getDigest(); if (dgst != null && !isAsync() && (getConfig().isRequireSecureNegotiate() || getErrorCode() == NtStatus.NT_STATUS_SUCCESS)) { // MID checking not required here as we only read responses for which we're waitingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java
@Override protected Smb2QueryDirectoryResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2QueryDirectoryResponse> req) { return new Smb2QueryDirectoryResponse(tc.getConfig(), this.fileInformationClass); } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#size() */ @Override public int size() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java
this.fileId = fileId; } @Override protected Smb2WriteResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2WriteResponse> req) { return new Smb2WriteResponse(tc.getConfig()); } /** * Sets the data to be written to the file. * * @param data the data buffer to write * @param offset the offset in the data bufferRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0)