Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for storeSessionKey (0.05 sec)

  1. src/test/java/jcifs/util/SecureKeyManagerTest.java

            byte[] key1 = new byte[16];
            byte[] key2 = new byte[16];
            new SecureRandom().nextBytes(key1);
            new SecureRandom().nextBytes(key2);
    
            keyManager.storeSessionKey(sessionId1, key1, "AES");
            keyManager.storeSessionKey(sessionId2, key2, "AES");
    
            byte[] retrieved1 = keyManager.getRawKey(sessionId1);
            byte[] retrieved2 = keyManager.getRawKey(sessionId2);
    
    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

                // Store keys securely
                String encKeyId = sessionId + "-enc";
                String decKeyId = sessionId + "-dec";
                keyManager.storeSessionKey(encKeyId, encryptionKey, "AES");
                keyManager.storeSessionKey(decKeyId, decryptionKey, "AES");
    
                // Clear local key copies for security
                this.encryptionKey = null;
                this.decryptionKey = null;
    
    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

        /**
         * Store a session key
         *
         * @param sessionId unique session identifier
         * @param key the secret key to store
         * @param algorithm the key algorithm (e.g., "AES")
         */
        public void storeSessionKey(String sessionId, byte[] key, String algorithm) {
            checkNotClosed();
    
            if (key == null || sessionId == null) {
                throw new IllegalArgumentException("Session ID and key must not be null");
            }
    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