- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getSessionKey (2.75 sec)
-
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); byte[] expectedKey = "sessionKey".getBytes(); when(mockSmbPipeHandleInternal.getSessionKey()).thenReturn(expectedKey); assertArrayEquals(expectedKey, handle.getSessionKey()); } @Test @DisplayName("Should propagate CIFSException when getting session key")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
assertNull(session.getSessionKey()); verify(session, times(3)).getSessionKey(); } // Error propagation: getSessionKey throws CIFSException @Test @DisplayName("getSessionKey throws CIFSException on failure") void getSessionKey_throws() throws CIFSException { doThrow(new CIFSException("session key failure")).when(session).getSessionKey();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
/** * * {@inheritDoc} * * @see jcifs.smb.SmbPipeHandleInternal#getSessionKey() */ @Override public byte[] getSessionKey() throws CIFSException { try (SmbTreeHandleImpl th = ensureTreeConnected(); SmbSessionImpl sess = th.getSession()) { return sess.getSessionKey(); } } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/AuthenticationProvider.java
/** * Gets the session key after successful authentication * * @return the session key or null if not available */ byte[] getSessionKey(); /** * Gets the signing key for SMB2/3 * * @return the signing key or null if not available */ byte[] getSigningKey(); /** * Validates authentication credentials
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
} @Override public String getServerWithDfs() { return this.pipe.getLocator().getServerWithDfs(); } @Override public byte[] getSessionKey() throws CIFSException { return this.handle.getSessionKey(); } /** * {@inheritDoc} * * @see jcifs.dcerpc.DcerpcHandle#doSendReceiveFragment(byte[], int, int, byte[]) */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
assertTrue(session.isInUse()); } @Test @DisplayName("getSessionKey: throws when absent, returns when present") void testGetSessionKey() throws Exception { SmbSessionImpl session = newSession(); // Absent key -> CIFSException CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey); assertTrue(noKey.getMessage().contains("No session key"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
} @Test @DisplayName("getSessionKey fetches via tree->session and returns bytes") void testGetSessionKey() throws CIFSException { when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); SmbSessionImpl session = mock(SmbSessionImpl.class); when(tree.getSession()).thenReturn(session); when(session.getSessionKey()).thenReturn(new byte[] { 1, 2, 3 });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionInternal.java
/** * Returns the current session key used for signing and encryption. * * @return the current session key * @throws CIFSException if the session key cannot be retrieved */ byte[] getSessionKey() throws CIFSException; /** * Returns the SMB transport associated with this session. * * @return the transport for this session */ SmbTransport getTransport(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
return serverWithDfs; } @Override public CIFSContext getTransportContext() { return localTransportContext; } @Override public byte[] getSessionKey() throws CIFSException { return sessionKey; } @Override protected void doSendFragment(byte[] buf, int off, int length) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
return masterKey; } /** * Returns the session key. * * @return A <code>byte[]</code> containing the session key. */ public byte[] getSessionKey() { return sessionKey; } /** * Sets the session key. * * @param sessionKey The session key. */ public void setSessionKey(final byte[] sessionKey) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0)