- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 48 for GetContext (0.09 seconds)
-
src/test/java/jcifs/SmbSessionTest.java
when(mockSession.getContext()).thenReturn(mockContext); CIFSContext result1 = mockSession.getContext(); CIFSContext result2 = mockSession.getContext(); assertSame(result1, result2, "getContext() should return consistent values"); verify(mockSession, times(2)).getContext(); } } @Nested
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
if (isExternalAuth(getContext(), npa)) { /* * preauthentication */ try (SmbSessionImpl smbSession = trans.getSmbSession(getContext().withDefaultCredentials()); SmbTreeImpl t = smbSession.getSmbTree(getContext().getConfig().getLogonShare(), null)) {
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) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} if (req.getDomain() != null && getContext().getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl) { ((DfsReferralDataImpl) dr).fixupDomain(req.getDomain()); } if (log.isDebugEnabled()) { log.debug("Got referral " + dr); } getContext().getDfs().cache(getContext(), path, dr); throw new DfsReferral(dr); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
* authentication. */ public byte[] getContext() { return this.context; } /** * Sets the local security context. This is used by the client * to negotiate local authentication. * * @param context * The local security context. */ public void setContext(final byte[] context) { this.context = context; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFile.java
this(isWorkgroup(context) ? new URL(null, "smb://" + checkName(name), context.getContext().getUrlHandler()) : new URL(context.getLocator().getURL(), encodeRelativePath(checkName(name)), context.getContext().getUrlHandler()), context.getContext()); setContext(context, name); } /** * Construct from string URL *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0) -
src/main/java/jcifs/SmbSession.java
<T extends SmbSession> T unwrap(Class<T> type); /** * Returns the CIFS context that this session is attached to. * * @return the context this session is attached to */ CIFSContext getContext();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/SmbTransport.java
public interface SmbTransport extends AutoCloseable { /** * Gets the CIFS context associated with this transport. * * @return the context this transport is attached to */ CIFSContext getContext(); /** * Unwraps the transport to the specified type. * * @param <T> the type to unwrap to * @param type the class of the transport type to unwrapCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
* authentication. */ public byte[] getContext() { return context; } /** * Sets the local security context. This is used by the client * to negotiate local authentication. * * @param context The local security context. */ public void setContext(final byte[] context) { this.context = context; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/jcifs/SmbTransportTest.java
// Arrange when(smbTransport.getContext()).thenReturn(cifsContext); // Act CIFSContext result = smbTransport.getContext(); // Assert assertNotNull(result, "Context should not be null"); assertEquals(cifsContext, result, "Returned context should be the mocked context"); verify(smbTransport).getContext(); // Verify that the method was called } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
} @Test @DisplayName("getContext should return CIFSContext") void testGetContext() throws CIFSException { // Given SmbResource resource = createMockResource(); when(resource.getContext()).thenReturn(mockContext); // When CIFSContext context = resource.getContext(); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0)