Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 174 for setConfig (0.4 sec)

  1. src/main/java/jcifs/smb/SmbSessionImpl.java

        }
    
        /**
         * @return the configuration used by this session
         */
        @Override
        public Configuration getConfig() {
            return this.transportContext.getConfig();
        }
    
        /**
         * @return the targetDomain
         */
        public String getTargetDomain() {
            return this.targetDomain;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/SingletonContextTest.java

            CIFSContext context = SingletonContext.getInstance();
            assertNotNull(context);
            assertEquals("CustomOS", context.getConfig().getNativeOs());
            assertEquals("CustomLanman", context.getConfig().getNativeLanman());
        }
    
        @Test
        void testInitAlreadyInitializedThrowsException() throws CIFSException {
            // Test attempting to initialize when already initialized
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbCopyUtil.java

                    } else {
                        dh.send(new SmbComSetInformation(dh.getConfig(), dest.getUncPath(), attrs, mtime),
                                new SmbComSetInformationResponse(dh.getConfig()));
                    }
                }
            } catch (final IOException se) {
                if (!src.getContext().getConfig().isIgnoreCopyToException()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate")
        void constructorAndSimpleDelegations() {
            // Ensures constructor acquires tree connection and simple delegate methods forward correctly
            // Verify constructor invoked acquire once
            verify(treeConnection, times(1)).acquire();
    
            // getConfig delegates
            when(treeConnection.getConfig()).thenReturn(config);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                return false;
            }
    
            if (!selected.atLeast(getConfig().getMinimumVersion()) || !selected.atMost(getConfig().getMaximumVersion())) {
                log.debug("Server selected an disallowed dialect version {} (min: {} max: {})", selected, getConfig().getMinimumVersion(),
                        getConfig().getMaximumVersion());
                return false;
            }
            this.selectedDialect = selected;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                    /*
                     * NtTrans Notify Change Request / Response
                     */
                    req = new NtTransNotifyChange(th.getConfig(), this.handle.getFid(), this.filter, this.recursive);
                    resp = new NtTransNotifyChangeResponse(th.getConfig());
                }
    
                if (log.isTraceEnabled()) {
                    log.trace("Sending NtTransNotifyChange for " + this.handle);
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            verify(tc, never()).getConfig();
            verifyNoInteractions(config);
        }
    
        @Test
        @DisplayName("createContext: Kerberos present but forceFallback triggers NTLM path")
        void createContext_forceFallback_triggersNtlmAndFailsOnNonNtlmToken() throws CIFSException {
            when(tc.getConfig()).thenReturn(config);
            when(config.isAllowNTLMFallback()).thenReturn(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type3Message.java

                final long ts) {
            if (!tc.getConfig().isEnforceSpnegoIntegrity() && serverAvPairs == null) {
                return null;
            }
            if (serverAvPairs == null) {
                serverAvPairs = new LinkedList<>();
            }
    
            if (getFlag(NTLMSSP_NEGOTIATE_SIGN)
                    && (tc.getConfig().isEnforceSpnegoIntegrity() || haveServerTimestamp && !tc.getConfig().isDisableSpnegoIntegrity())) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileTest.java

                when(mockLocator.getUNCPath()).thenReturn("\\localhost\share\newdir");
                when(mockLocator.getShare()).thenReturn("share");
                // Mock tree handle's getConfig() to return our mock config
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testMkdir() throws SmbException, CIFSException {
                // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

         */
        @Override
        public boolean allowChain(final CommonServerMessageBlockRequest next) {
            return getConfig().isAllowCompound(getClass().getSimpleName()) && getConfig().isAllowCompound(next.getClass().getSimpleName());
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel()
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top