Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getEncryptionContext (0.09 seconds)

  1. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  2. 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));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
Back to Top