- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for rawKey (0.97 sec)
-
src/test/java/jcifs/util/SecureKeyManagerTest.java
byte[] rawKey = keyManager.getRawKey(sessionId); assertNotNull(rawKey, "Should retrieve raw key"); assertArrayEquals(testKey, rawKey, "Raw key should match"); // Verify we get a copy, not the original rawKey[0] = (byte) ~rawKey[0]; byte[] rawKey2 = keyManager.getRawKey(sessionId); assertArrayEquals(testKey, rawKey2, "Should still match original"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureKeyManager.java
checkNotClosed(); // Remove from memory maps SecretKey secretKey = sessionKeys.remove(sessionId); byte[] rawKey = rawKeys.remove(sessionId); // Wipe the raw key bytes if (rawKey != null) { Arrays.fill(rawKey, (byte) 0); } // Destroy the SecretKey if possible if (secretKey instanceof Destroyable) { try {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0)