- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for getServerEncryptionKey (1.19 sec)
-
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Test @DisplayName("getServerEncryptionKey returns expected bytes") void serverEncryptionKey_variants() { byte[] key = new byte[] { 1, 2, 3 }; when(transport.getServerEncryptionKey()).thenReturn(key); assertArrayEquals(key, transport.getServerEncryptionKey()); verify(transport).getServerEncryptionKey(); // Empty array byte[] empty = new byte[0];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} @Override public boolean isSigningEnforced() throws SmbException { return delegate.isSigningEnforced(); } @Override public byte[] getServerEncryptionKey() { return delegate.getServerEncryptionKey(); } @Override public SmbSession getSmbSession(CIFSContext ctx) { return delegate.getSmbSession(ctx); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
setField(transport, "negotiated", smb1); assertArrayEquals(new byte[] { 1, 2, 3 }, transport.getServerEncryptionKey()); // SMB2 negotiation never exposes key via this API setField(transport, "negotiated", new Smb2NegotiateResponse(cfg)); assertNull(transport.getServerEncryptionKey()); } @Test @DisplayName("Signing enforced/optional adhere to flags and negotiation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportInternal.java
boolean isSigningEnforced() throws SmbException; /** * Gets the server's encryption key for authentication. * * @return the encryption key used by the server */ byte[] getServerEncryptionKey(); /** * Gets or creates an SMB session for the given context. * * @param ctx the CIFS context * @return session */ SmbSession getSmbSession(CIFSContext ctx);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
when(mockTransport.getContext()).thenReturn(mockContext); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLanManCompatibility()).thenReturn(3); when(mockTransport.getServerEncryptionKey()).thenThrow(new RuntimeException("Test exception")); assertThrows(SmbException.class, () -> new SMB1SigningDigest(mockTransport, mockAuth)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(mockTransport.unwrap(SmbTransportInternal.class)).thenReturn(internal); when(internal.ensureConnected()).thenReturn(true); when(internal.getServerEncryptionKey()).thenReturn(expectedKey); doReturn(mockTransport).when(poolSpy).getSmbTransport(eq(ctx), any(Address.class), anyInt(), eq(false), anyBoolean()); // When: Get challenge
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
this.digest = Crypto.getMD5(); try { final byte[] serverEncryptionKey = transport.getServerEncryptionKey(); switch (transport.getContext().getConfig().getLanManCompatibility()) { case 0: case 1: case 2: this.macSigningKey = new byte[40];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpFilter.java
ssn.treeConnectLogon(); } } return new NtlmChallenge(trans.getServerEncryptionKey(), dc); } catch (final SmbException e) { throw e; } catch (final IOException e) { throw new SmbException("Connection failed", e); } } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
.unwrap(SmbTransportInternal.class)) { trans.ensureConnected(); return trans.getServerEncryptionKey(); } catch (final SmbException e) { throw e; } catch (final IOException e) { throw new SmbException("Connection failed", e); } } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)