Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for shouldForceSigning (1.22 sec)

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

        }
    
        // Happy path: shouldForceSigning returns the configured value
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("shouldForceSigning returns stubbed boolean value")
        void shouldForceSigningReturns(boolean expected) {
            when(locator.shouldForceSigning()).thenReturn(expected);
    
            boolean result = locator.shouldForceSigning();
    
            assertEquals(expected, result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        }
    
        @Test
        @DisplayName("shouldForceSigning depends on config, creds, and IPC")
        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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

        /**
         * Determines whether SMB signing should be enforced for connections to this resource.
         *
         * @return whether to enforce the use of signing on connection to this resource
         */
        boolean shouldForceSigning();
    
        /**
         * Determines whether this resource path overlaps with another resource path by sharing a common root.
         *
         * @param other the other resource locator to compare with
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                        }
                        this.exclusiveTransport = this.ctx.getTransportPool()
                                .getSmbTransport(this.ctx, host, loc.getPort(), true, loc.shouldForceSigning())
                                .unwrap(SmbTransportInternal.class);
                        final SmbTransportInternal trans = this.exclusiveTransport;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

        public URL getURL() {
            return this.url;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbResourceLocatorInternal#shouldForceSigning()
         */
        @Override
        public boolean shouldForceSigning() {
            return this.ctx.getConfig().isIpcSigningEnforced() && !this.ctx.getCredentials().isAnonymous() && isIPC();
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top