Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for secureWipe (0.06 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                    // Securely wipe temporary key references - guaranteed by try-finally
                    if (encKey != null) {
                        SecureKeyManager.secureWipe(encKey);
                    }
                    if (decKey != null) {
                        SecureKeyManager.secureWipe(decKey);
                    }
                }
            } catch (Exception e) {
                log.error("Error validating key lengths", e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureCredentialStorage.java

                return result;
    
            } finally {
                // Securely wipe plaintext bytes - guaranteed by try-finally
                if (plaintextBytes != null) {
                    SecureKeyManager.secureWipe(plaintextBytes);
                }
            }
        }
    
        public char[] decryptCredentials(byte[] ciphertext) throws GeneralSecurityException {
            checkNotDestroyed();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SecureKeyManager.java

                log.info("Rotated key for session {} from version {} to {}", sessionId, currentVersion, newVersion);
    
                // Securely wipe the old key copy
                secureWipe(currentKey);
                secureWipe(newKey);
    
                return newVersion;
    
            } catch (Exception e) {
                log.error("Failed to rotate key for session: {}", sessionId, e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SecureKeyManagerTest.java

            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);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            } finally {
                // Wipe client challenge - guaranteed by try-finally
                if (clientChallenge != null) {
                    SecureKeyManager.secureWipe(clientChallenge);
                    clientChallenge = null;
                }
                closed = true;
            }
        }
    
        /**
         * Check if this authenticator has been closed
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top