Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 509 for flags0 (0.07 seconds)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @DisplayName("Should handle various share flag combinations")
        @ParameterizedTest
        @MethodSource("provideFlagCombinations")
        void testShareFlagCombinations(int flags, boolean expectedDfs) throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = createValidResponseBuffer(0, flags, 0, 0);
    
            // When
            response.readBytesWireFormat(buffer, 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

        /**
         * Checks if a specific flag is set
         * @param flag the flag to check
         * @return true if the flag is set, false otherwise
         */
        public boolean isFlagSet(final int flag) {
            return (flags & flag) == flag;
        }
    
        /**
         * Unsets a specific flag
         * @param flag the flag to unset
         */
        public void unsetFlag(final int flag) {
            flags &= ~flag;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/dtyp/ACETest.java

        }
    
        @Test
        @DisplayName("Test all flag combinations for inheritance")
        void testAllFlagCombinationsForInheritance() {
            // Test each individual flag
            ace.flags = ACE.FLAGS_OBJECT_INHERIT;
            assertFalse(ace.isInherited());
    
            ace.flags = ACE.FLAGS_CONTAINER_INHERIT;
            assertFalse(ace.isInherited());
    
            ace.flags = ACE.FLAGS_NO_PROPAGATE;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/witness/WitnessRegisterRequest.java

        }
    
        /**
         * Gets the registration flags.
         *
         * @return the flags
         */
        public int getFlags() {
            return flags;
        }
    
        /**
         * Sets the registration flags.
         *
         * @param flags the flags
         */
        public void setFlags(int flags) {
            this.flags = flags;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java

        }
    
        /**
         * Gets the lease flags for this V2 request
         * @return the lease flags
         */
        public int getLeaseFlags() {
            return leaseFlags;
        }
    
        /**
         * Sets the lease flags for this V2 request
         * @param leaseFlags the lease flags to set
         */
        public void setLeaseFlags(int leaseFlags) {
            this.leaseFlags = leaseFlags;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/ntlmssp/Type2Message.java

         * @param flags
         *            The flags to apply to this message.
         * @param challenge
         *            The challenge from the domain controller/server.
         * @param target
         *            The authentication target.
         */
        public Type2Message(final CIFSContext tc, final int flags, final byte[] challenge, final String target) {
            setFlags(flags);
            setChallenge(challenge);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/witness/WitnessRegistration.java

        }
    
        /**
         * Gets the registration flags.
         *
         * @return the registration flags
         */
        public int getFlags() {
            return flags;
        }
    
        /**
         * Sets the registration flags.
         *
         * @param flags the registration flags
         */
        public void setFlags(int flags) {
            this.flags = flags;
        }
    
        /**
         * Gets the context handle.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            assertTrue(req instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Should set notify flags correctly")
        void testSetNotifyFlags() throws Exception {
            // Given
            int flags = Smb2ChangeNotifyRequest.SMB2_WATCH_TREE;
    
            // When
            request.setNotifyFlags(flags);
    
            // Then
            Field notifyFlagsField = Smb2ChangeNotifyRequest.class.getDeclaredField("notifyFlags");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            assertFalse(message.getFlag(0b0100), "Flag 0b0100 should not be set.");
            assertFalse(message.getFlag(0b0001), "Flag 0b0001 should not be set.");
    
            message.setFlags(0); // No flags set
            assertFalse(message.getFlag(0b1000), "No flags should be set.");
        }
    
        @Test
        void testSetFlag() {
            // Test setting a flag
            message.setFlags(0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @DisplayName("Should encode consistently with various flag values")
            @ValueSource(ints = { 0, 1, 2, 4, 16, 0xFF, 0xFFFF, 0xFFFFFF, 0x7FFFFFFF, -1 })
            void testEncodingWithVariousFlags(int flags) {
                lock = new Smb2Lock(1024L, 2048L, flags);
                int encoded = lock.encode(buffer, 0);
    
                assertEquals(24, encoded);
                assertEquals(flags, SMBUtil.readInt4(buffer, 16));
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
Back to Top