Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 93 for integrity (0.07 seconds)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            DirectoryLeaseContext decodedContext = new DirectoryLeaseContext(new Smb2LeaseKey(), 0, DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            decodedContext.decode(buffer, 0, buffer.length);
    
            // Verify roundtrip integrity
            assertEquals(context.getLeaseState(), decodedContext.getLeaseState());
            assertEquals(context.getCacheScope(), decodedContext.getCacheScope());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SpnegoContextTest.java

        Configuration config;
    
        @Mock
        SSPContext mechContext;
    
        private ASN1ObjectIdentifier[] mechs;
    
        @BeforeEach
        void setup() {
            // Default: do not enforce or disable SPNEGO integrity
            when(this.config.isEnforceSpnegoIntegrity()).thenReturn(false);
            when(this.config.isDisableSpnegoIntegrity()).thenReturn(false);
            this.mechs = new ASN1ObjectIdentifier[] { new ASN1ObjectIdentifier("1.2.3.4") };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         * @param decryptionKey
         *            key for server->client decryption
         * @param sessionKey
         *            base session key for key rotation
         * @param preauthHash
         *            preauth integrity hash for SMB 3.1.1
         */
        public Smb2EncryptionContext(final int cipherId, final DialectVersion dialect, final byte[] encryptionKey, final byte[] decryptionKey,
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            assertNotNull(request.getClientGuid());
            assertNotNull(request.getNegotiateContexts());
            assertNotNull(request.getPreauthSalt());
    
            // Verify data integrity
            assertEquals(16, request.getClientGuid().length);
            assertEquals(32, request.getPreauthSalt().length);
            assertTrue(request.getDialects().length > 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertNotNull(getFieldValue(netShareEnum, "maxDataCount"));
            assertTrue((int) getFieldValue(netShareEnum, "maxDataCount") > 0);
        }
    
        @Test
        @DisplayName("Test writeParametersWireFormat data integrity")
        void testWriteParametersWireFormatDataIntegrity() throws Exception {
            netShareEnum = new NetShareEnum(realConfig);
            byte[] dst = new byte[256];
    
            // Write parameters
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(encodedSize, decodedSize);
                assertArrayEquals(singleCipher, decodedContext.getCiphers());
            }
    
            @Test
            @DisplayName("Should maintain data integrity through encode/decode cycle")
            void testEncodeDecodeCycle() throws SMBProtocolDecodingException {
                // Arrange
                int[] hashAlgos = new int[] { 1, 2, 3, 4, 5 };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

        /** Whether to use raw NTLM authentication without SPNEGO */
        protected boolean useRawNTLM = false;
        /** Whether to disable SPNEGO integrity checking */
        protected boolean disableSpnegoIntegrity = false;
        /** Whether to enforce SPNEGO integrity checking */
        protected boolean enforceSpnegoIntegrity = true;
        /** Whether plain text passwords are disabled */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                // Should handle encoding at the end of buffer correctly
                assertDoesNotThrow(() -> context.encode(smallBuffer, 4));
            }
    
            @Test
            @DisplayName("Should preserve data integrity through encode/decode cycle")
            void testDataIntegrity() throws SMBProtocolDecodingException {
                // Create complex test data
                int[] hashAlgos = new int[20];
                byte[] salt = new byte[64];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  9. docs/security/README.md

    ##### Figure 1 - Secure Channel construction
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Feb 26 09:25:50 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SpnegoContext.java

            if ((mechanismListMIC == null || !this.mechContext.supportsIntegrity()) && this.requireMic
                    && !this.mechContext.isPreferredMech(this.selectedMech)) {
                throw new CIFSException("SPNEGO integrity is required but not available");
            }
    
            // otherwise we ignore the absence of a MIC
            if (!this.mechContext.isMICAvailable() || mechanismListMIC == null) {
                return;
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.5K bytes
    - Click Count (0)
Back to Top