Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 76 for nt (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

    class SmbAuthExceptionTest {
    
        /**
         * Provides a set of error codes covering normal, edge and unknown cases.
         */
        static Stream<Arguments> errorCodes() {
            return Stream.of(
                    // Known NT status code - NT_STATUS_UNSUCCESSFUL
                    Arguments.of(0xC0000001, "A device attached to the system is not functioning."),
                    Arguments.of(0x00000000, "NT_STATUS_SUCCESS"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

    package jcifs.internal.smb1.trans.nt;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

            // Assert
            assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match");
            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Default NT status should be UNSUCCESSFUL");
            assertNull(ex.getCause(), "Cause should be null by default");
            assertNull(ex.getRootCause(), "Root cause should be null by default");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += this.info.encode(dst, dstIndex);
    
            /* 6 zeros observed with NT */
            SMBUtil.writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /*
             * Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2
             */
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

            writeInt8(0L, dst, dstIndex);
            dstIndex += 8;
            /* Samba 2.2.7 needs ATTR_NORMAL
             */
            writeInt2(0x80 | attributes, dst, dstIndex);
            dstIndex += 2;
            /* 6 zeros observed with NT */
            writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /* Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2 */
    
            return dstIndex - start;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.internal.smb1.trans.nt;
    
    import java.io.IOException;
    
    import jcifs.Decodable;
    import jcifs.FileNotifyInformation;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Hexdump;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeConnection.java

    import jcifs.internal.RequestWithPath;
    import jcifs.internal.dfs.DfsReferralDataInternal;
    import jcifs.internal.smb1.com.SmbComClose;
    import jcifs.internal.smb1.com.SmbComFindClose2;
    import jcifs.internal.smb1.trans.nt.NtTransQuerySecurityDesc;
    import jcifs.util.transport.TransportException;
    
    /**
     * This class encapsulates the logic for switching tree connections
     *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                throw new RuntimeException("Try setting jcifs.smb1.encoding=US-ASCII", uee);
            }
            int passwordLength = passwordBytes.length;
    
            // Only encrypt the first 14 bytes of the password for Pre 0.12 NT LM
            if (passwordLength > 14) {
                passwordLength = 14;
            }
            System.arraycopy(passwordBytes, 0, p14, 0, passwordLength);
            E(p14, S8, p21);
            E(p21, challenge, p24);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

     * {@link #getRootCause()}, and {@link #toString()}.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbExceptionTest {
    
        /**
         * Happy path – constructor with a valid NT status code (0).
         */
        @Test
        @DisplayName("Constructor 0 – NT_STATUS_SUCCESS")
        void testConstructorWithZeroCode() {
            SmbException ex = new SmbException(0, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmSspTest.java

            message[13] = 0;
            message[14] = 24; // Max Length
            message[15] = 0;
            message[16] = 64; // Offset
            message[17] = 0;
            message[18] = 0;
            message[19] = 0;
    
            // NT Response (24 bytes at offset 88)
            message[20] = 24; // Length
            message[21] = 0;
            message[22] = 24; // Max Length
            message[23] = 0;
            message[24] = 88; // Offset
            message[25] = 0;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
Back to top