Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 95 for Nt (0.01 seconds)

  1. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.internal.smb1.trans.nt;
    
    import jcifs.Configuration;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Hexdump;
    
    /**
     * SMB1 NT Transaction subcommand for querying security descriptors.
     *
     * This transaction allows retrieval of Windows security descriptors
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                    resumeKey = e.fileIndex;
                }
    
                bufferIndex += e.nextEntryOffset;
            }
    
            /* last nextEntryOffset for NT 4(but not 98) is 0 so we must
             * use dataCount or our accounting will report an error for NT :~(
             */
    
            //return bufferIndex - start;
    
            return dataCount;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Whether to use NT status codes */
        boolean USE_NTSTATUS = Config.getBoolean("jcifs.smb1.smb.client.useNtStatus", true);
        /** Whether signing is preferred */
        boolean SIGNPREF = Config.getBoolean("jcifs.smb1.smb.client.signingPreferred", false);
        /** Whether to use NT SMBs */
        boolean USE_NTSMBS = Config.getBoolean("jcifs.smb1.smb.client.useNTSmbs", true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbException.java

            super(winerr ? getMessageByWinerrCode(errcode) : getMessageByCode(errcode));
            status = winerr ? errcode : getStatusByCode(errcode);
        }
    
        /**
         * Returns the NT status code for this exception.
         *
         * @return the NT status code
         */
        public int getNtStatus() {
            return status;
        }
    
        /**
         * Returns the root cause of this exception if one exists
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // For primary NT transaction: should be at least 38 bytes
            assertTrue(primaryBytes >= 38);
    
            // Execute for secondary transaction
            transaction.setCommand(ServerMessageBlock.SMB_COM_NT_TRANSACT_SECONDARY);
            int secondaryBytes = transaction.writeParameterWordsWireFormat(dst, 0);
    
            // For secondary NT transaction: should be at least 36 bytes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/NtStatus.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb;
    
    /**
     * Interface defining NT status codes used in SMB protocol operations.
     * These status codes are returned by SMB servers to indicate the result
     * of requested operations. The codes follow the Windows NT status code format.
     */
    public interface NtStatus {
    
        /*
         * Don't bother to edit this. Everything within the interface
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/DosErrorTest.java

            // Act: for each input, if a mapping exists, notify the consumer
            for (int dos : inputs) {
                int nt = findNtStatusOrMinusOne(dos);
                if (nt != -1) {
                    consumer.accept(dos, nt);
                }
            }
    
            // Assert: consumer called exactly for the 3 known codes, with the right arguments
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java

     */
    
    package jcifs.internal.smb1.trans.nt;
    
    import java.io.IOException;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    import jcifs.internal.dtyp.SecurityDescriptor;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Response for SMB1 NT Transaction security descriptor query.
     *
     * This response contains the Windows security descriptor retrieved
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // The error code gets mapped to NT_STATUS_UNSUCCESSFUL because it's not a valid NT status code
            assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/NtStatusTest.java

    /**
     * Test class for NtStatus constants
     */
    @DisplayName("NtStatus Tests")
    class NtStatusTest {
    
        @Test
        @DisplayName("Should define well-known NT status constants")
        void testWellKnownStatusConstants() {
            // Verify important NT status constants are defined
            assertEquals(0x00000000, NtStatus.NT_STATUS_SUCCESS);
            assertEquals((int) 0xC0000022L, NtStatus.NT_STATUS_ACCESS_DENIED);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
Back to Top