- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getEncryptionContext (0.07 seconds)
-
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 encryptCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
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)