Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 191 for CIFSContext (0.05 seconds)

  1. src/main/java/jcifs/CIFSContext.java

         *
         * @return a child context using the configured default credentials
         */
        CIFSContext withDefaultCredentials();
    
        /**
         * Create a child context with anonymous credentials
         *
         * @return a child context using anonymous credentials
         */
        CIFSContext withAnonymousCredentials();
    
        /**
         * Create a child context with guest credentials
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class Smb2LogoffRequestTest {
    
        @Mock
        Configuration configuration;
    
        @Mock
        CIFSContext cifsContext;
    
        // Helper to create a fresh request under test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/context/AbstractCIFSContext.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withDefaultCredentials()
         */
        @Override
        public CIFSContext withDefaultCredentials() {
            return withCredentials(getDefaultCredentials());
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withGuestCrendentials()
         */
        @Override
        public CIFSContext withGuestCrendentials() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/context/CIFSContextWrapper.java

    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbNamedPipe;
    
    /**
     * A wrapper implementation of CIFSContext that delegates to another context.
     * This class allows for context decoration and customization through delegation.
     *
     * @author mbechler
     */
    public class CIFSContextWrapper implements CIFSContext {
    
        private final CIFSContext delegate;
        private Handler wrappedHandler;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

    import org.mockito.MockitoAnnotations;
    
    import jcifs.CIFSContext;
    import jcifs.DialectVersion;
    import jcifs.util.transport.Response;
    
    /**
     * Test class for SmbNegotiationResponse interface
     */
    class SmbNegotiationResponseTest {
    
        @Mock
        private SmbNegotiationResponse negotiationResponse;
    
        @Mock
        private CIFSContext cifsContext;
    
        @Mock
        private SmbNegotiationRequest negotiationRequest;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

        /** The CIFS context for this authentication */
        private CIFSContext context;
    
        /**
         *
         */
        private NtlmPasswordAuthentication() {
        }
    
        /**
         * Construct anonymous credentials
         *
         * @param tc the CIFS context to use
         */
        public NtlmPasswordAuthentication(final CIFSContext tc) {
            this(tc, "", "", "");
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/CIFSContextTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CIFSContext interface functionality
     */
    @DisplayName("CIFSContext Tests")
    class CIFSContextTest extends BaseTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Test
        @DisplayName("Should define interface methods")
        void testCIFSContextInterface() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SIDCacheImplTest.java

        }
    
        @Test
        @DisplayName("resolveSids(CIFSContext,server,sids,offset,length) throws on invalid inputs")
        void resolveSids_invalidInputs() throws Exception {
            SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
            CIFSContext ctx = mock(CIFSContext.class);
    
            // Null sids array -> NPE
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14K bytes
    - Click Count (0)
  9. src/test/java/jcifs/SmbSessionTest.java

                CIFSContext mockContext = mock(CIFSContext.class);
                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();
    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)
  10. src/test/java/jcifs/context/SingletonContextTest.java

            // Test getInstance returns the existing instance
            SingletonContext.init(null);
            CIFSContext firstInstance = SingletonContext.getInstance();
            CIFSContext secondInstance = SingletonContext.getInstance();
            assertSame(firstInstance, secondInstance);
        }
    
        @Test
        void testRegisterSmbURLHandlerWhenPkgsIsNull() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top