Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for setFlag (0.05 seconds)

  1. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertTrue(msg.getFlag(0x4), "Bit should be set after setFlag(true)");
        }
    
        @Test
        @DisplayName("setFlag false clears the bit")
        void testSetFlagFalse() {
            msg.setFlag(0x4, true);
            msg.setFlag(0x4, false);
            assertFalse(msg.getFlag(0x4), "Bit should be cleared after setFlag(false)");
        }
    
        // ---------------- Static read tests -----------------
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. src/main/java/jcifs/dcerpc/DcerpcMessage.java

         */
        public void unsetFlag(final int flag) {
            this.flags &= ~flag;
        }
    
        /**
         * Set flag
         *
         * @param flag the flag to set
         */
        public void setFlag(final int flag) {
            this.flags |= flag;
        }
    
        /**
         * Get the result of the DCERPC call.
         * @return result exception, if the call failed
         */
        public DcerpcException getResult() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

         * <code>NTLMSSP_NEGOTIATE_OEM</code>).
         * @param value Indicates whether to set (<code>true</code>) or
         * clear (<code>false</code>) the specified flag.
         */
        public void setFlag(final int flag, final boolean value) {
            setFlags(value ? getFlags() | flag : getFlags() & (0xffffffff ^ flag));
        }
    
        static int readULong(final byte[] src, final int index) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/ntlmssp/NtlmMessage.java

         * @param value
         *            Indicates whether to set (<code>true</code>) or
         *            clear (<code>false</code>) the specified flag.
         */
        public void setFlag(final int flag, final boolean value) {
            setFlags(value ? getFlags() | flag : getFlags() & (0xffffffff ^ flag));
        }
    
        static int readULong(final byte[] src, final int index) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

         */
        public void unsetFlag(final int flag) {
            flags &= ~flag;
        }
    
        /**
         * Sets a specific flag
         * @param flag the flag to set
         */
        public void setFlag(final int flag) {
            flags |= flag;
        }
    
        /**
         * Get the result of the DCERPC call.
         * @return result exception if the call failed, null otherwise
         */
        public DcerpcException getResult() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            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);
            assertFalse(m.isFlagSet(FLAG_A));
            // Test another flag
            m.setFlag(FLAG_B);
            assertTrue(m.isFlagSet(FLAG_B));
            m.unsetFlag(FLAG_B);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertEquals(WitnessRegistration.WITNESS_REGISTER_IP_NOTIFICATION, registration.getFlags());
    
            registration.setFlags(WitnessRegistration.WITNESS_REGISTER_NONE);
            assertEquals(WitnessRegistration.WITNESS_REGISTER_NONE, registration.getFlags());
    
            registration.setFlags(WitnessRegistration.WITNESS_REGISTER_IP_NOTIFICATION);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/Mojo.java

     * It features an <code>execute()</code> method, which triggers the Mojo's build-process behavior, and can throw
     * a MojoExecutionException or MojoFailureException if error conditions occur.<br>
     * Also included is the <code>setLog(...)</code> method, which simply allows Maven to inject a logging mechanism which
     * will allow the Mojo to communicate to the outside world through standard Maven channels.
     *
     */
    @ThreadSafe
    public interface Mojo {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

         * @param suppliedWorkstation The supplied workstation name.
         */
        public Type1Message(final int flags, final String suppliedDomain, String suppliedWorkstation) {
            setFlags(getDefaultFlags() | flags);
            setSuppliedDomain(suppliedDomain);
            if (suppliedWorkstation == null) {
                suppliedWorkstation = getDefaultWorkstation();
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/witness/WitnessRegisterRequest.java

         * @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)
Back to Top