Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withCredentials (0.07 sec)

  1. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        @Test
        void testWithCredentials() {
            // Test withCredentials(Credentials creds) method
            Credentials mockCredentials = mock(Credentials.class);
            CIFSContext mockNewContext = mock(CIFSContext.class);
            when(mockDelegate.withCredentials(mockCredentials)).thenReturn(mockNewContext);
            assertEquals(mockNewContext, cifsContextWrapper.withCredentials(mockCredentials));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

            }
            try {
                if (smbAuthentication == null) {
                    file = new SmbFile(filePath, cifsContext);
                } else {
                    file = new SmbFile(filePath, cifsContext.withCredentials(getAuthenticator(smbAuthentication)));
                }
            } catch (final MalformedURLException e) {
                logger.warn("Could not parse url: {}", filePath, e);
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
Back to top