Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getEncryptionContext (0.24 sec)

  1. src/test/java/jcifs/smb/SmbSessionImplTest.java

            when(enc.decryptMessage(any(byte[].class))).thenReturn(new byte[] { 7, 7 });
    
            assertTrue(session.isEncryptionEnabled());
            assertSame(enc, session.getEncryptionContext());
    
            byte[] encOut = session.encryptMessage(new byte[] { 1, 2, 3 });
            assertArrayEquals(new byte[] { 9, 9 }, encOut);
            verify(enc, times(1)).encryptMessage(eq(new byte[] { 1, 2, 3 }), eq(99L));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

            return this.encryptionContext != null;
        }
    
        /**
         * @return the encryption context for this session, or null if encryption is not enabled
         */
        public Smb2EncryptionContext getEncryptionContext() {
            return this.encryptionContext;
        }
    
        /**
         * Encrypt a message using the session's encryption context
         *
         * @param message the message to encrypt
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top