Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isEncryptionEnabled (0.88 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

                testSalt[i] = (byte) (i + 0x10);
            }
    
            // Default configuration for SMB 3.1.1 with encryption
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockConfig.isEncryptionEnabled()).thenReturn(true);
            when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB202);
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.isIpcSigningEnforced();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#isEncryptionEnabled()
         */
        @Override
        public boolean isEncryptionEnabled() {
            return this.delegate.isEncryptionEnabled();
        }
    
        @Override
        public boolean isCompressionEnabled() {
            return this.delegate.isCompressionEnabled();
        }
    
    Registered: Sun Sep 07 00:10:21 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

        }
    
        @Test
        @DisplayName("Encryption and security configuration should delegate correctly")
        void testEncryptionSecurityDelegation() {
            // Given
            when(mockDelegate.isEncryptionEnabled()).thenReturn(true);
            when(mockDelegate.isSigningEnabled()).thenReturn(false);
            when(mockDelegate.isSigningEnforced()).thenReturn(true);
            when(mockDelegate.isIpcSigningEnforced()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/config/PropertyConfigurationTest.java

            // Then
            assertTrue(testConfig.isSigningEnforced());
            assertTrue(testConfig.isSigningEnabled());
            assertFalse(testConfig.isEncryptionEnabled());
        }
    
        @Test
        @DisplayName("Should handle invalid property values gracefully")
        void testInvalidPropertyValues() throws CIFSException {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionImplTest.java

            when(enc.encryptMessage(any(byte[].class), eq(99L))).thenReturn(new byte[] { 9, 9 });
            when(enc.decryptMessage(any(byte[].class))).thenReturn(new byte[] { 7, 7 });
    
            assertTrue(session.isEncryptionEnabled());
            assertSame(enc, session.getEncryptionContext());
    
            byte[] encOut = session.encryptMessage(new byte[] { 1, 2, 3 });
            assertArrayEquals(new byte[] { 9, 9 }, encOut);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertFalse(config.isSigningEnabled());
            assertFalse(config.isSigningEnforced());
            assertTrue(config.isIpcSigningEnforced());
            assertFalse(config.isEncryptionEnabled());
            assertFalse(config.isForceExtendedSecurity());
        }
    
        @Test
        @DisplayName("Test buffer configuration getters")
        void testBufferConfigurationGetters() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            this.commonCapabilities = r.getCapabilities() & this.capabilities;
    
            if ((this.commonCapabilities & Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION) != 0) {
                this.supportsEncryption = tc.getConfig().isEncryptionEnabled();
            }
    
            if (this.selectedDialect.atLeast(DialectVersion.SMB311) && !checkNegotiateContexts(r, this.commonCapabilities)) {
                return false;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            response = new Smb2NegotiateResponse(mockConfig);
    
            // Default configuration
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockConfig.isEncryptionEnabled()).thenReturn(true);
            when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB202);
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/config/BaseConfiguration.java

            return this.signingEnforced;
        }
    
        @Override
        public boolean isIpcSigningEnforced() {
            return this.ipcSigningEnforced;
        }
    
        @Override
        public boolean isEncryptionEnabled() {
            return this.encryptionEnabled;
        }
    
        @Override
        public boolean isCompressionEnabled() {
            return this.compressionEnabled;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/Configuration.java

         * negotiation, SMB encryption is not implemented yet.
         *
         * @return whether SMB encryption is enabled
         * @since 2.1
         */
        boolean isEncryptionEnabled();
    
        /**
         * Property {@code jcifs.smb.client.preferredCiphers} (string, default "AES_128_GCM,AES_128_CCM,AES_256_GCM,AES_256_CCM")
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top