Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 255 for 0x10 (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

        private Smb2SessionSetupRequest request;
    
        // Test constants
        private static final int TEST_SECURITY_MODE = 0x01;
        private static final int TEST_CAPABILITIES = 0x00000001;
        private static final long TEST_PREVIOUS_SESSION_ID = 0x1234567890ABCDEFL;
        private static final byte[] TEST_TOKEN = { 0x01, 0x02, 0x03, 0x04, 0x05 };
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        private static Stream<Arguments> provideNamesForWriteTest() {
            return Stream.of(Arguments.of("SERVER", 0x20, "CLIENT", 0x00), Arguments.of("WORKSTATION", 0x00, "USER", 0x03),
                    Arguments.of("DOMAIN", 0x1B, "BROWSER", 0x1D), Arguments.of("A", 0x20, "B", 0x00),
                    Arguments.of("VERYLONGNAMETEST", 0x20, "ANOTHERLONGNAME", 0x00));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                }
            } else {
                // no password in tree connect
                this.passwordLength = 1;
            }
    
            dst[dstIndex] = this.disconnectTid ? (byte) 0x01 : (byte) 0x00;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            SMBUtil.writeInt2(this.passwordLength, dst, dstIndex);
            return 4;
        }
    
        @SuppressWarnings("deprecation")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                }
            } else {
                // no password in tree connect
                passwordLength = 1;
            }
    
            dst[dstIndex] = disconnectTid ? (byte) 0x01 : (byte) 0x00;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            writeInt2(passwordLength, dst, dstIndex);
            return 4;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM };
            int flags = NegTokenInit.DELEGATION | NegTokenInit.MUTUAL_AUTHENTICATION | NegTokenInit.INTEGRITY;
            byte[] mechToken = new byte[] { 0x01, 0x02, 0x03 };
            byte[] mic = new byte[] { (byte) 0xFE, 0x55 };
    
            NegTokenInit init = new NegTokenInit(mechs, flags, mechToken, mic);
            byte[] bytes = init.toByteArray();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/dtyp/ACE.java

            case 0x00:
                return "This folder only";
            case 0x03:
                return "This folder, subfolders and files";
            case 0x0B:
                return "Subfolders and files only";
            case 0x02:
                return "This folder and subfolders";
            case 0x0A:
                return "Subfolders only";
            case 0x01:
                return "This folder and files";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            byte[] buffer = new byte[10];
            // sid = 1
            writeInt2(1, buffer, 0);
            // numEntries = 2
            writeInt2(2, buffer, 2);
            // isEndOfSearch = true
            buffer[4] = 0x01;
            buffer[5] = 0x00;
            // eaErrorOffset = 3
            writeInt2(3, buffer, 6);
            // lastNameOffset = 4
            writeInt2(4, buffer, 8);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/NetbiosNameTest.java

            // Given
            int testType = 0x20; // Server service
            when(mockNetbiosName.getNameType()).thenReturn(testType);
    
            // When
            int nameType = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(testType, nameType);
            verify(mockNetbiosName).getNameType();
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x00, 0x03, 0x06, 0x1B, 0x1C, 0x1D, 0x1E, 0x20 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        void byteArrayConstructor_malformedDER_throwsWrapped() {
            // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content)
            byte[] malformed = new byte[] { 0x30, 0x02, 0x01 };
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(malformed, null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            SMBUtil.writeInt2(9, buf, bodyStart);
            buf[bodyStart + 2] = 0x02; // errorContextCount
            buf[bodyStart + 3] = 0x00; // reserved
            int bc = 4;
            SMBUtil.writeInt4(bc, buf, bodyStart + 4);
            byte[] err = new byte[] { 0x55, 0x66, 0x77, 0x01 };
            System.arraycopy(err, 0, buf, bodyStart + 8, bc);
    
            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top