- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getRawKey (1.82 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
return this.cipherId; } private byte[] getEncryptionKey() { if (keyManager != null) { String encKeyId = sessionId + "-enc"; byte[] key = keyManager.getRawKey(encKeyId); if (key == null) { throw new IllegalStateException("Encryption key not found in SecureKeyManager"); } return key; }
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/main/java/jcifs/util/SecureKeyManager.java
return key; } /** * Get raw key bytes * * @param sessionId unique session identifier * @return raw key bytes, or null if not found */ public byte[] getRawKey(String sessionId) { checkNotClosed(); byte[] key = rawKeys.get(sessionId); if (key != null) { return key.clone(); // Return a copy to prevent modification }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0)