Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for setContext (0.33 sec)

  1. 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;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. 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;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // Then
                assertArrayEquals(testTargetInfo, message.getTargetInformation());
            }
    
            @Test
            @DisplayName("setContext and getContext should work correctly")
            void testGetSetContext() {
                // Given
                CIFSContext mockContext = createMockContext();
                Type2Message message = new Type2Message(mockContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt

    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() {
      @Before
      fun setContext() {
        // This is awkward because Robolectric won't run our initializers and we don't want test deps
        // https://github.com/robolectric/robolectric/issues/8461
        OkHttp.initialize(ApplicationProvider.getApplicationContext())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  5. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

    import org.robolectric.RobolectricTestRunner
    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class DisabledInitialiserTest {
      @Before
      fun setContext() {
        // Ensure we aren't succeeding because of another test
        Platform.resetForTests()
        PlatformRegistry.applicationContext = null
      }
    
      @Test
      fun testWithoutContext() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. 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
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  7. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. 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)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. 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);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  10. 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
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top