- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getRawKey (0.08 seconds)
-
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 }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 21.5K bytes - Click Count (0) -
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");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (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; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0)