Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isIpcSigningEnforced (0.51 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        void testShouldForceSigning() {
            when(config.isIpcSigningEnforced()).thenReturn(true);
            when(creds.isAnonymous()).thenReturn(false);
    
            // Case 1: share is IPC$ -> IPC
            SmbResourceLocatorImpl ipc = locator("smb://server/IPC$/");
            assertTrue(ipc.shouldForceSigning());
    
            // Case 2: config disabled
            when(config.isIpcSigningEnforced()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.isSigningEnforced();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isIpcSigningEnforced()
         */
        @Override
        public boolean isIpcSigningEnforced() {
            return this.delegate.isIpcSigningEnforced();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isEncryptionEnabled()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            when(mockDelegate.isEncryptionEnabled()).thenReturn(true);
            when(mockDelegate.isSigningEnabled()).thenReturn(false);
            when(mockDelegate.isSigningEnforced()).thenReturn(true);
            when(mockDelegate.isIpcSigningEnforced()).thenReturn(true);
            when(mockDelegate.isForceExtendedSecurity()).thenReturn(true).thenReturn(false);
    
            // When
            boolean encryptionEnabled = delegatingConfig.isEncryptionEnabled();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            try (SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class)) {
                trans.ensureConnected();
                return trans.getServerEncryptionKey();
            } catch (final SmbException e) {
                throw e;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(config.getLocalPort()).thenReturn(0);
            when(config.getSessionLimit()).thenReturn(10);
            when(config.isSigningEnforced()).thenReturn(false);
            when(config.isIpcSigningEnforced()).thenReturn(true);
            when(config.getLogonShare()).thenReturn("IPC$");
    
            // Default address values
            when(address.getHostName()).thenReturn("test.host");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmHttpFilter.java

            final UniAddress dc = new UniAddress(addr);
            try (SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, 0, false, tf.hasDefaultCredentials() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class)) {
                if (!tf.hasDefaultCredentials()) {
                    trans.ensureConnected();
                    log.warn("""
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

            final String rsvc = response.getService();
            if (rsvc == null && !transport.isSMB2()) {
                throw new SmbException("Service is NULL");
            }
    
            if (transport.getContext().getConfig().isIpcSigningEnforced() && ("IPC$".equals(this.getShare()) || "IPC".equals(rsvc))
                    && !sess.getCredentials().isAnonymous() && sess.getDigest() == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

        void testSecurityConfigurationGetters() {
            assertFalse(config.isSigningEnabled());
            assertFalse(config.isSigningEnforced());
            assertTrue(config.isIpcSigningEnforced());
            assertFalse(config.isEncryptionEnabled());
            assertFalse(config.isForceExtendedSecurity());
        }
    
        @Test
        @DisplayName("Test buffer configuration getters")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbResourceLocatorInternal#shouldForceSigning()
         */
        @Override
        public boolean shouldForceSigning() {
            return this.ctx.getConfig().isIpcSigningEnforced() && !this.ctx.getCredentials().isAnonymous() && isIPC();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#isIPC()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/config/BaseConfiguration.java

            return this.signingPreferred;
        }
    
        @Override
        public boolean isSigningEnforced() {
            return this.signingEnforced;
        }
    
        @Override
        public boolean isIpcSigningEnforced() {
            return this.ipcSigningEnforced;
        }
    
        @Override
        public boolean isEncryptionEnabled() {
            return this.encryptionEnabled;
        }
    
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
Back to top