Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 28 of 28 for isSigningEnforced (0.07 seconds)

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

        private SmbTransportImpl transport;
    
        @BeforeEach
        void setUp() throws Exception {
            when(context.getConfig()).thenReturn(config);
            when(config.isSigningEnforced()).thenReturn(false);
            when(config.getSessionTimeout()).thenReturn(30_000);
            when(config.getResponseTimeout()).thenReturn(5_000);
            when(address.getHostAddress()).thenReturn("127.0.0.1");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/config/PropertyConfigurationTest.java

            // When
            PropertyConfiguration testConfig = new PropertyConfiguration(props);
    
            // Then
            assertTrue(testConfig.isSigningEnforced());
            assertTrue(testConfig.isSigningEnabled());
            assertFalse(testConfig.isEncryptionEnabled());
        }
    
        @Test
        @DisplayName("Should handle invalid property values gracefully")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            assertEquals("", response.getServerData().oemDomainName);
        }
    
        @Test
        public void testIsValid() {
            SmbNegotiationRequest request = mock(SmbNegotiationRequest.class);
            when(request.isSigningEnforced()).thenReturn(true);
            response.getServerData().signaturesEnabled = true;
    
            assertTrue(response.isValid(mockContext, request));
            assertTrue(response.isSigningNegotiated());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/config/BaseConfigurationTest.java

        }
    
        @Test
        @DisplayName("Test security configuration getters")
        void testSecurityConfigurationGetters() {
            assertFalse(config.isSigningEnabled());
            assertFalse(config.isSigningEnforced());
            assertTrue(config.isIpcSigningEnforced());
            assertFalse(config.isEncryptionEnabled());
            assertFalse(config.isForceExtendedSecurity());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            setPrivateField(response, "maxWriteSize", 65536);
            setPrivateField(response, "maxTransactSize", 65536);
    
            // Setup valid request
            when(mockRequest.isSigningEnforced()).thenReturn(false);
            when(mockRequest.getCapabilities()).thenReturn(Smb2Constants.SMB2_GLOBAL_CAP_DFS);
            when(mockRequest.getNegotiateContexts())
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Default config values
            when(config.getLocalAddr()).thenReturn(null);
            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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

        }
    
        boolean isSignatureSetupRequired() throws SmbException {
            SMBSigningDigest cur = getDigest();
            if (cur != null) {
                return false;
            }
            if (this.transport.isSigningEnforced()) {
                return true;
            }
            return this.transport.getNegotiateResponse().isSigningNegotiated();
        }
    
        /**
         * @param digest
         *            the digest to set
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

        @Override
        public boolean isValid(final CIFSContext tc, final SmbNegotiationRequest req) {
            if (!isReceived() || getStatus() != 0) {
                return false;
            }
    
            if (req.isSigningEnforced() && !isSigningEnabled()) {
                log.debug("Signing is enforced but server does not allow it");
                return false;
            }
    
            if (getDialectRevision() == Smb2Constants.SMB2_DIALECT_ANY) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
Back to Top