Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 331 for 0x02 (0.01 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java

                java.lang.reflect.Field flagsField = jcifs.dcerpc.DcerpcMessage.class.getDeclaredField("flags");
                flagsField.setAccessible(true);
                assertEquals(0x01 | 0x02, flagsField.get(msrpcSamrOpenAlias),
                        "flags should be initialized to DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
            } catch (NoSuchFieldException | IllegalAccessException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/MIENameTest.java

                    // Wrong TOK_ID
                    Arguments.of("wrong TOK_ID", new byte[] { 0x00, 0x02, 0x00, 0x01 }, IllegalArgumentException.class),
    
                    // OID length claims more than available
                    Arguments.of("oid length exceeds buffer", new byte[] { 0x04, 0x01, 0x00, 0x10, 0x06 }, IllegalArgumentException.class),
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test successful reading of 6 bytes from the input stream.
            // The content of these bytes is not critical for this test, only that 6 bytes are read.
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes
            ByteArrayInputStream bais = new ByteArrayInputStream(data);
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            }
        }
    
        /* --- flag handling -------------------------------- */
        @Test
        void testFlagSetAndUnset() {
            TestMessage m = new TestMessage();
            int FLAG_A = 0x01;
            int FLAG_B = 0x02;
            assertFalse(m.isFlagSet(FLAG_A));
            m.setFlag(FLAG_A);
            assertTrue(m.isFlagSet(FLAG_A));
            // unset correctly removes the flag
            m.unsetFlag(FLAG_A);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Given
                byte[] buffer = new byte[60];
                SMBUtil.writeInt2(60, buffer, 0);
    
                // Set multiple attribute flags
                int attributes = 0x01 | 0x02 | 0x04 | 0x10 | 0x20; // Multiple attributes
                SMBUtil.writeInt4(attributes, buffer, 56);
    
                // When
                response.readBytesWireFormat(buffer, 0);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            stubValidTree(1L, true, true);
    
            byte[] fidBytes = new byte[] { 0x01, 0x02 };
            SmbFileHandleImpl h1 = new SmbFileHandleImpl(cfg, fidBytes, tree, "//u/one", 0x10, 0x20, 0x30, 0x40, 0L);
            String s1 = h1.toString();
            assertTrue(s1.contains("//u/one"));
            assertTrue(s1.contains("0102"), "Expected hex fileId in string");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

    class Trans2FindFirst2 extends SmbComTransaction {
    
        // flags
    
        private static final int FLAGS_CLOSE_AFTER_THIS_REQUEST = 0x01;
        private static final int FLAGS_CLOSE_IF_END_REACHED = 0x02;
        private static final int FLAGS_RETURN_RESUME_KEYS = 0x04;
        private static final int FLAGS_RESUME_FROM_PREVIOUS_END = 0x08;
        private static final int FLAGS_FIND_WITH_BACKUP_INTENT = 0x10;
    
        private static final int DEFAULT_LIST_SIZE = 65535;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        private CommonServerMessageBlock message;
    
        private byte[] testData;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
        }
    
        @Test
        @DisplayName("Test sign method with valid parameters")
        void testSignWithValidParameters() {
            // Arrange
            int offset = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

            byte[] dst = new byte[2];
            int bytesWritten = smbComDelete.writeParameterWordsWireFormat(dst, 0);
            assertEquals(2, bytesWritten);
            // ATTR_HIDDEN (0x02) | ATTR_SYSTEM (0x04) = 0x06
            assertEquals(0x06, dst[0]);
            assertEquals(0x00, dst[1]);
        }
    
        @Test
        public void testWriteBytesWireFormat() {
            // Test the writing of bytes to a byte array
            byte[] dst = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/spnego/NegTokenInit.java

        /**
         * Context flag for integrity (signing) capability
         */
        public static final int INTEGRITY = 0x02;
    
        private static final ASN1ObjectIdentifier SPNEGO_OID = new ASN1ObjectIdentifier(SpnegoConstants.SPNEGO_MECHANISM);
    
        private ASN1ObjectIdentifier[] mechanisms;
    
        private int contextFlags;
    
        /**
         * Default constructor for NegTokenInit
         */
        public NegTokenInit() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top