- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 174 for setConfig (0.08 seconds)
-
src/test/java/jcifs/context/AbstractCIFSContextTest.java
@Override public NameServiceClient getNameServiceClient() { return null; // Not relevant for AbstractCIFSContext tests } @Override public Configuration getConfig() { return null; // Not relevant for AbstractCIFSContext tests } @Override public SmbPipeResource getPipe(String name, int flags) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java
*/ @Override protected Smb2ChangeNotifyResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2ChangeNotifyResponse> req) { return new Smb2ChangeNotifyResponse(tc.getConfig()); } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#size() */ @Override public int size() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
} @Override protected Smb2ReadResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2ReadResponse> req) { return new Smb2ReadResponse(tc.getConfig(), this.outputBuffer, this.outputBufferOffset); } /** * {@inheritDoc} * * @see jcifs.internal.smb2.RequestWithFileId#setFileId(byte[]) */ @OverrideCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmUtil.java
final byte[] p14 = new byte[14]; final byte[] p21 = new byte[21]; final byte[] p24 = new byte[24]; final byte[] passwordBytes = Strings.getOEMBytes(password, tc.getConfig()); int passwordLength = passwordBytes.length; // Only encrypt the first 14 bytes of the password for Pre 0.12 NT LM if (passwordLength > 14) { passwordLength = 14; }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
// Create a mock configuration for testing Properties properties = new Properties(); config = new PropertyConfiguration(properties); context = mock(CIFSContext.class); when(context.getConfig()).thenReturn(config); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#SmbComClose(jcifs.Configuration, int, long)}. */ @Test public void testConstructor() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
private SmbTransport mockTransport; @Mock private CommonServerMessageBlock mockMessage; private ChannelManager channelManager; @BeforeEach void setUp() { when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.isUseMultiChannel()).thenReturn(true); when(mockConfig.getMaxChannels()).thenReturn(4); when(mockConfig.getChannelBindingPolicy()).thenReturn(1); // preferredCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
witnessServer = InetAddress.getByName("192.168.1.200"); serverAddress = InetAddress.getByName("192.168.1.100"); // Setup mock configuration with lenient stubbing lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L); lenient().when(mockConfig.getWitnessRegistrationTimeout()).thenReturn(300000L);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 9.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
Thread t = new Thread(r, "LeaseManager-Cleanup"); t.setDaemon(true); return t; }); // Schedule periodic cleanup long cleanupInterval = context.getConfig().getLeaseTimeout(); if (cleanupInterval <= 0) { cleanupInterval = DEFAULT_LEASE_CLEANUP_INTERVAL; } final long finalCleanupInterval = cleanupInterval;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
this.expiration = exp; } /** * Gets the configuration object for this message block * @return the config */ protected final Configuration getConfig() { return this.config; } /** * */ @Override public void reset() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 38.9K bytes - Click Count (0)