Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for wipes (0.1 sec)

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

            passwordField.setAccessible(true);
    
            // Verify password exists before wipe
            char[] passwordBefore = (char[]) passwordField.get(authenticator);
            assertNotNull(passwordBefore, "Password should exist before wipe");
            assertArrayEquals(testPassword.toCharArray(), passwordBefore, "Password should match before wipe");
    
            // Wipe the password
            authenticator.secureWipePassword();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

                        if (index == threadCount - 1) {
                            // Last thread wipes password
                            auth.secureWipePassword();
                        } else {
                            // Other threads try to read password
                            String pwd = auth.getPassword();
                            // Password might be null if already wiped
                            assertTrue(pwd == null || pwd.equals("ConcurrentPass123!"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        /**
         * Securely wipes the password from memory
         */
        public void secureWipePassword() {
            if (this.password != null) {
                // Multi-pass secure wipe of password char array
                Arrays.fill(this.password, '\0');
                Arrays.fill(this.password, '\uFFFF');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // When
            context.secureWipeKeys();
    
            // Then - keys should be wiped (we can't directly access them, but method should complete)
            assertDoesNotThrow(() -> context.secureWipeKeys(), "Should handle multiple wipe calls");
        }
    
        @Test
        @DisplayName("Should detect when key rotation is needed based on bytes encrypted")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

        /**
         * Close the encryption context and securely wipe keys
         */
        @Override
        public void close() {
            if (closed) {
                return;
            }
    
            try {
                secureWipeKeys();
    
                // Clear session ID
                sessionId = null;
    
                log.debug("Encryption context closed and keys wiped");
            } finally {
                closed = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureKeyManager.java

        }
    
        /**
         * Remove and securely wipe a session key
         *
         * @param sessionId unique session identifier
         */
        public void removeSessionKey(String sessionId) {
            checkNotClosed();
    
            // Remove from memory maps
            SecretKey secretKey = sessionKeys.remove(sessionId);
            byte[] rawKey = rawKeys.remove(sessionId);
    
            // Wipe the raw key bytes
            if (rawKey != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.29.md

    - Fixed bugs in handling of server-side apply, create, and update API requests for objects containing duplicate items in keyed lists.
      - A `create` or `update` API request with duplicate items in a keyed list no longer wipes out managedFields. Examples include env var entries with the same name, or port entries with the same containerPort in a pod spec.
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Mar 12 00:36:01 UTC 2025
    - 429.6K bytes
    - Viewed (1)
  8. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            if (this.closed) {
                throw new IllegalStateException("SigningDigest is closed");
            }
            if (this.signingKey == null) {
                throw new IllegalStateException("Signing key has been wiped");
            }
            Mac m;
            if (this.provider != null) {
                m = Mac.getInstance(this.algorithmName, this.provider);
            } else {
                m = Mac.getInstance(this.algorithmName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                    digest.sign(newData, 0, newData.length, request, response);
                }, "Should throw exception after key is wiped");
            }
    
            @Test
            @DisplayName("Should wipe key on close")
            void testCloseWipesKey() throws Exception {
                byte[] sessionKey = new byte[16];
                Arrays.fill(sessionKey, (byte) 0xBB);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/SecureKeyManagerTest.java

                }
            }
            assertTrue(hasNonZero, "Data should have non-zero bytes");
    
            SecureKeyManager.secureWipe(data);
    
            // Verify data is wiped
            for (byte b : data) {
                assertEquals(0, b, "All bytes should be zero after wipe");
            }
        }
    
        @Test
        public void testSecureWipeNull() {
            // Should not throw
            SecureKeyManager.secureWipe(null);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top