Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 118 for 0x02FF (0.04 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java

        /**
         * Test constructor with raw bytes.
         */
        @Test
        void testAvFlagsByteArrayConstructor() {
            // Test with a positive integer
            byte[] rawBytes = new byte[] { 0x01, 0x02, 0x03, 0x04 }; // Represents 0x04030201 (little-endian)
            AvFlags avFlags = new AvFlags(rawBytes);
            assertNotNull(avFlags, "AvFlags object should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenTargTest.java

        }
    
        @Test
        @DisplayName("parsing malformed token throws IOException")
        void testMalformedToken() {
            byte[] bad = new byte[] { 0x01, 0x02, 0x03 }; // not a valid ASN.1 tagged object
            assertThrows(IOException.class, () -> new NegTokenTarg(bad), "Malformed byte[] should cause IOException");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            final ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
            for (final String dialect : this.dialects) {
                bos.write(0x02);
                try {
                    bos.write(Strings.getASCIIBytes(dialect));
                } catch (final IOException e) {
                    throw new RuntimeCIFSException(e);
                }
                bos.write(0x0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        private static final int PRIMARY_SETUP_OFFSET = 61;
        private static final int SECONDARY_PARAMETER_OFFSET = 51;
    
        static final int DISCONNECT_TID = 0x01;
        static final int ONE_WAY_TRANSACTION = 0x02;
    
        static final int PADDING_SIZE = 4;
    
        private final int tflags = 0x00;
        private int pad1 = 0;
        private int pad2 = 0;
        private boolean hasMore = true;
        private boolean isPrimary = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessNotification.java

            private final int flags;
    
            /** Flag indicating IPv4 address type */
            public static final int IPV4 = 0x01;
            /** Flag indicating IPv6 address type */
            public static final int IPV6 = 0x02;
    
            /**
             * Creates a new witness IP address.
             *
             * @param address the IP address
             */
            public WitnessIPAddress(InetAddress address) {
                this.address = address;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

         */
        @Test
        void testConstructor_TruncateOnly() {
            int flags = SmbFile.O_TRUNC;
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx);
            assertEquals(0x02, smbComOpenAndX.openFunction); // OPEN_FN_TRUNC
        }
    
        /**
         * Test getBatchLimit with SMB_COM_READ_ANDX command.
         */
        @Test
        void testGetBatchLimit_ReadAndX() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        void getters_throw_whenInvalid() {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(1L, true, true);
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 0x01, 0x02 }, tree, "//x", 0, 0, 0, 0, 0L);
            // invalidate
            h.markClosed();
    
            SmbException ex1 = assertThrows(SmbException.class, h::getFid);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/spnego/NegTokenInit.java

         */
        public static final int CONFIDENTIALITY = 0x04;
        /**
         * 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;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

    import jcifs.smb1.util.Hexdump;
    
    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;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top