Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getRawKey (1.82 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top