- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for wiped (0.04 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
sessionId = null; auditLogger.logEvent(EventType.SESSION_DESTROYED, Severity.INFO, "Authenticator closed and credentials wiped", Map.of("username", username != null ? username : "unknown")); } finally { // Wipe client challenge - guaranteed by try-finally if (clientChallenge != null) { SecureKeyManager.secureWipe(clientChallenge);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
@Mock Configuration mockCfg; // Provides a fresh handler instance for tests private Handler newHandler() { return new Handler(); } // Provides a handler wired with a mocked CIFSContext private Handler newHandlerWith(CIFSContext ctx) { return new Handler(ctx); } @Test @DisplayName("getDefaultPort returns SMB default port")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0)