- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 292 for wipe (0.02 sec)
-
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) -
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) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
// Create threads that try to wipe or access password for (int i = 0; i < threadCount; i++) { final int index = i; new Thread(() -> { try { startLatch.await(); if (index % 3 == 0) { // Some threads wipe password auth.secureWipePassword();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Securely wipe the modified session key SecureKeyManager.secureWipe(modifiedSessionKey); // Rotate keys using existing method rotateKeys(newEncryptionKey, newDecryptionKey); log.info("Automatic key rotation completed for session: {} (rotation count: {})", sessionId, rotationCount); } /** * Securely wipe encryption keys from memory */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
@DisplayName("Should not allow operations after secure wipe") void testNoOperationsAfterWipe() throws GeneralSecurityException { byte[] sessionKey = new byte[16]; Arrays.fill(sessionKey, (byte) 0xDD); Smb2SigningDigest digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0300, new byte[0]); // Wipe the key digest.secureWipeKey();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
} return true; // Signature verification succeeded } finally { this.signingLock.unlock(); } } /** * Securely wipe signing key from memory */ public void secureWipeKey() { this.signingLock.lock(); try { if (this.signingKey != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
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) -
src/main/java/jcifs/util/SecureCredentialStorage.java
System.arraycopy(ciphertext, 0, result, GCM_IV_SIZE, ciphertext.length); return result; } finally { // Securely wipe plaintext bytes - guaranteed by try-finally if (plaintextBytes != null) { SecureKeyManager.secureWipe(plaintextBytes); } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
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) -
src/main/java/jcifs/smb/NtlmContext.java
} else { char[] passwordChars = this.auth.getPasswordAsCharArray(); if (passwordChars != null) { passwordString = new String(passwordChars); // Securely wipe the char array immediately after use java.util.Arrays.fill(passwordChars, '\0'); } } return new Type3Message(this.transportContext, msg2, this.targetName, passwordString,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0)