Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for GetContext (0.04 sec)

  1. 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)
  2. 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();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertEquals(exception.getMessage(), deserialized.getMessage());
            assertEquals(exception.getContext().get("key1"), deserialized.getContext().get("key1"));
            assertEquals(exception.getContext().get("key2"), deserialized.getContext().get("key2"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                switch (transport.getContext().getConfig().getLanManCompatibility()) {
                case 0:
                case 1:
                case 2:
                    this.macSigningKey = new byte[40];
                    auth.getUserSessionKey(transport.getContext(), serverEncryptionKey, this.macSigningKey, 0);
                    System.arraycopy(auth.getUnicodeHash(transport.getContext(), serverEncryptionKey), 0, this.macSigningKey, 16, 24);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                // Arrange
                SmbFile src = mock(SmbFile.class, RETURNS_DEEP_STUBS);
                SmbFile dest = mock(SmbFile.class);
                CIFSContext ctx = ctxWithIgnore(false);
                when(src.getContext()).thenReturn(ctx);
    
                // Force failure before any stream construction
                when(src.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(new SmbException("boom"));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportImplTest.java

            assertSame(dg, transport.getDigest());
        }
    
        @Test
        @DisplayName("Context accessor returns constructor-provided context")
        void contextAccessor() {
            assertSame(ctx, transport.getContext());
        }
    
        @Test
        @DisplayName("acquire returns same instance")
        void acquireReturnsSameInstance() {
            SmbTransportImpl acquired = transport.acquire();
            assertSame(transport, acquired);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

        }
    
        @Test
        @DisplayName("Test constructor with transport throws SmbException on error")
        void testConstructorWithTransportThrowsException() throws Exception {
            when(mockTransport.getContext()).thenReturn(mockContext);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.getLanManCompatibility()).thenReturn(3);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top