Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for 0x1234 (0.79 sec)

  1. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        }
    
        @Test
        @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
        void testBasicAccessors() {
            when(pipe.getPipeType()).thenReturn(0x123456);
            assertSame(pipe, target.getPipe());
            assertEquals(0x123456, target.getPipeType());
            assertEquals("\\\\pipe\\\\my-pipe", target.getUncPath());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

        void testPrepareWithoutReceivedDoesNotPropagate() {
            Smb2SessionSetupResponse resp = newResponse();
            // Set a sessionId, but do not mark as received via decode
            resp.setSessionId(0x1234L);
    
            CIFSContext mockCtx = mock(CIFSContext.class);
            when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            for (int i = 0; i < 24; i++) {
                buffer[offset + i] = (byte) (0xFF - i);
            }
    
            // Add context length at offset
            buffer[offset + 24] = 0x12;
            buffer[offset + 25] = 0x34;
            buffer[offset + 26] = 0x56;
            buffer[offset + 27] = 0x78;
    
            // Decode
            int bytesConsumed = response.decode(buffer, offset, 28);
    
            // Verify
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            // Given - Create a custom implementation
            BasicFileInformation customImpl = new BasicFileInformation() {
                @Override
                public int getAttributes() {
                    return 0x123;
                }
    
                @Override
                public long getCreateTime() {
                    return 999L;
                }
    
                @Override
                public long getLastWriteTime() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

            switch (il) {
            case FileSystemInformation.SMB_INFO_ALLOCATION:
                return 0x1;
            case FileSystemInformation.FS_SIZE_INFO:
                return 0x103;
            }
            throw new IllegalArgumentException("Unhandled information level");
        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacMacTest.java

            byte[] expanded = PacMac.expandNFold(data, outlen);
            assertNotNull(expanded);
            assertEquals(outlen, expanded.length);
    
            // Test vectors from RFC 3961 Appendix A.1
            // 64-fold("012345")
            verifyNfold("012345", 8,
                    new byte[] { (byte) 0xbe, (byte) 0x07, (byte) 0x26, (byte) 0x31, (byte) 0x27, (byte) 0x6b, (byte) 0x19, (byte) 0x55 });
    
            // 56-fold("password")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            customData[0] = 0x01;
            customData[1] = 0x02;
    
            byte[] machineId = new byte[32];
            machineId[0] = 0x10;
            machineId[1] = 0x11;
            machineId[2] = 0x12;
    
            AvSingleHost avSingleHost = new AvSingleHost(customData, machineId);
    
            assertNotNull(avSingleHost);
            byte[] value = avSingleHost.getRaw();
            assertNotNull(value);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/transport/TransportTest.java

            void shouldIdentifyFailedStates() {
                // Failed states: 5=disconnecting, 6=disconnected/invalid
                int[] failedStates = { 5, 6 };
                int[] nonFailedStates = { 0, 1, 2, 3, 4 };
    
                for (int state : failedStates) {
                    transport.setState(state);
                    assertTrue(transport.isFailed(), "State " + state + " should be failed");
                }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertEquals(0, hash.length);
        }
    
        // Test that changing lmCompatibility at runtime doesn't affect already loaded static value
        @ParameterizedTest
        @ValueSource(strings = { "0", "1", "2", "3", "4", "5" })
        void testLmCompatibilityStaticInitialization(String lmCompatibility) {
            // Attempt to change the property (won't affect static final LM_COMPATIBILITY)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer[3] = 0x00; // Size high byte
            testBuffer[4] = (byte) 0xA9; // Access mask byte 0
            testBuffer[5] = 0x00; // Access mask byte 1
            testBuffer[6] = 0x12; // Access mask byte 2
            testBuffer[7] = 0x00; // Access mask byte 3
    
            // Add minimal SID data (S-1-1-0 - Everyone)
            testBuffer[8] = 0x01; // Revision
            testBuffer[9] = 0x01; // Sub-authority count
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
Back to top